V
Q. What will be the output of the following Java code? class box { int width; int height; int length; int volume; void finalize() { volume = width*height*length; System.out.println(volume); } protected void volume() { volume = width*height*length; System.out.println(volume); } } class Output { public static void main(String args[]) { box obj = new box(); obj.width=5; obj.height=5; obj.length=6; obj.volume(); } }
No solution found for this question.
Add Solution and get +2 points.
You must be Logged in to update hint/solution
Q. Which of the below is not a session tracking method?
Q. An array of objects, which may have_______ type of different classes.
Q. What is the output of the below Java program with WHILE, BREAK and CONTINUE?
Q. Which of the following is a valid Java identifier?
Q. What will happen if we provide concrete implementation of method in interface?
Q. Choose the correct implementation of floating point literals in the exponential form in Java.
Q. What will happen if two thread of same priority are called to be processed simultaneously?
Discusssion
Login to discuss.