J
Q. What is the result of compiling and running the following code?
class Base{ private Base(){ System.out.print("Base"); } } public class test extends Base{ public test(){ System.out.print("Derived"); } public static void main(String[] args){ new test(); } }
No solution found for this question.
Add Solution and get +2 points.
You must be Logged in to update hint/solution
Be the first to start discuss.
Q. Which of these interfaces is implemented by TimerTask class?
Q. Which environment variable is used to set the java path?
Q. Object is an _________ of a class.
Q. What is garbage collection in the context of Java?
Q. A primitive data type can be passed as an argument into a method
Q. Which of these are selection statements in Java?
Q. What is the result of the expression 10 / 3 in Java?
Q. Which packages represent interfaces and classes for servlet API?
Discusssion
Login to discuss.