Home / Programming MCQs / JAVA MCQs / Question
R
Q. What is the output of this program?
public class Output { public static void main(String args[]) { int p = 5; int q = 6; int r = 7; p |= 4; q >>= 1; r <<= 1; p ^= r; System.out.println(p + " " + q + " " + r); } }
No solution found for this question.
Add Solution and get +2 points.
You must be Logged in to update hint/solution
The keyword used to create a constant variable
To compare the contents of two objects ______ method is used.
What is the output of the below Java program?
Which of the following statements about abstract methods/classes in JAVA is true?
An attempt to add null key to a TreeMap will result in
___ keyword is used to refer to the current object.
What is the output of the following code snippet?
An exception is an __________ condition that arises in a code.
Discusssion
Login to discuss.