Home / Programming Questions / JAVA MCQs / Page 266
Dear candidates you will find MCQ questions of JAVA here. Learn these questions and prepare yourself for coming examinations and interviews. You can check the right answer of any question by clicking on any option or by clicking view answer button.
Share your questions by clicking Add Question
M
Q. Identify the statements that are not correct:
M
Q. Consider the following code: int x, y, z;~~~y = 1;~~~z = 5;~~~x = 0 - (++y) + z++;~~~after execution of this, what will be the values of x, y and z?
M
Q. What will be the result of the expression: a % b when a & b is of type int and their values~~~are a = 10 and b = 6?
M
Q. Which of the following statements about abstract methods/classes in JAVA is true?
M
Q. The keywords reserved but used in the initial version of JAVA are:
M
Q. When we invoke repaint() for a JAVA.awt.Component object, the AWT invokes the method _____________.
M
Q. The setBackground() method is part of the following class in JAVA.awt package.
M
Q. Which of the following methods can be used to draw the outline of a square within a JAVA.awt.Component object?
Don't have account? Register here.