R
Q. Which of these is a super class of all exceptional type classes?
No solution found for this question. Add Solution and get +2 points.
You must be Logged in to update hint/solution
Login to discuss.
Be the first to start discuss.
Q. Which of the following are legal lines of Java code? 1. int w = (int)888.8; 2. byte x = (byte)100L; 3. long y = (byte)100; 4. byte z = (byte)100L;
Q. Constructors have the same name as the ________
Q. If we try to add Enum constants to a TreeSet, what sorting order will it use?
Q. Using which of the following, multiple inheritance in Java can be implemented?
Q. Given that Student is a class, how many reference variables and objects are created by the following code?
Q. Which of these methods can be used to obtain the reference to the container that generated a ContainerEvent?
Q. The super() method is used to ___.
Q. What will be the output of the following program code? class Rectangle{ public int area(int length, int width){ return length*width; } } class Square extends Rectangle{ public int area(long length, long width){ return (int) Math.pow(length, 2); } } public class Test{ public static void main(String args[]){ Square r = new Square(); System.out.println(r.area(5 , 4)); } }
Q. Which of these is the method which is executed first before execution of any other thing takes place in a program?
Q. How private method can be called using reflection?
Embed
WhatsApp
Facebook
Telegram
Share in MCQ Buddy Groups
Discusssion
Login to discuss.