Operators - Java MCQ Quiz
Java provides a rich operator environment. Most of its operators can be divided into the following groups: arithmetic, bitwise, relational, and logical. Java also defines some additional operators that handle certain special situations.
Arithmetic Operators (+, -, *, /, %, ++, –, +=, -=, *=, /=, %=):
Arithmetic operators are used in mathematical expressions in the same way that they are used in algebra.
Bitwise Operators (~, &, |, ^, >>, >>>, <<, &=, |=, ^=, >>=, >>>=, <<=):
Java defines several bitwise operators that can be applied to the integer types, long, int, short, char, and byte. These operators act upon the individual bits of their operands.
Relational Operators (==, !=, >, <, >=, <=):
The relational operators determine the relationship that one operand has with the other. Specifically, they determine equality and order.
Logical Operators (&, |, ^, ||, &&, !, &=, |=, ^=, ==, !=, ?:):
The Boolean Logical operators that are shown here operate only on boolean operands. All of the binary logical operators combine two boolean values to form a resultant boolean value.
Other operators such as the Assignment operator (=), the Ternary Operator (?:), etc.
Quiz Description:
Name: Introduction to Java MCQ quiz
Subject:Â Java
Topic: Introduction
Questions: 15 Objective Type Questions
Time Allowed: 15Â Minutes
Language:Â English
Important for: Â B. Tech. / M. Tech. Students, B.Sc. / M.Sc. (CS / IT) and aspirants of I.E.S. and other competitive exams, computer science job interviews, Java job interviews, etc.
Created By: Esha Tripathi






