Operators – Java MCQ Quiz

This Java Quiz is based on Operators in Java MCQs, you can read this tutorial about Operators in Java to know more. You can also attempt the previous Arrays in Java MCQ Quiz or Next Iterative Statements in Java MCQ Quiz

514

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

Previous QuizArrays Java mcq quiz
Next QuizIterative Statements – Java MCQ Quiz

LEAVE A REPLY

Please enter your comment!
Please enter your name here