Home / Programming MCQs / JAVA MCQs / Question
R
Q. What is the output of this program?
public class Relational_operator_Example { public static void main(String args[]) { int num1 = 7; int num2 = 6; System.out.print(num1 > num2); } }
Operator > returns a boolean value. 5 is not greater than 6 therefore false is returned. output: true
You must be Logged in to update hint/solution
Q. In Iterator, nextElement() method of Enumeration has been changed to
Q. What is the output of the below Java program with Enums?
Q. By interface, we cannot support the functionality of multiple inheritances.
Q. Which of these method of DatagramPacket is used to find port number?
Q. The following Syntax is used for
Q. Which of those permits the storage of the many null values?
Q. All the wrapper classes (Integer, Boolean, Float, Short, Long, Double and Character).
Q. The method in Graphics class to draw a circle/oval with specified width and height.
Q. Methods having same name, same type signature are called _____ methods.
Discusssion
Login to discuss.