R
Q. Which of the following is/are true about constructors in Java? 1) Constructor name should be same as class name. 2) If you don't define a constructor for a class, a default parameterless constructor is automatically created by the compiler. 3) The default constructor calls super() and initializes all instance variables to default value like 0, null. 4) If we want to parent class constructor, it must be called in first line of constructor.
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 packages contain all the Java's built in exceptions?
Q. Which method in java is used to get the name of running java VM?
Q. What is the output of the below Java program with Enums?
Q. What is the result of compiling and running the following code?
Q. What is the value of the expression 8 << 2 ?
Q. In Java, which data type is used to store numbers with decimal points?
Q. What was the reason for huge initial success of Java?
Q. f a thread is to be declared as a daemon thread, it must be declared before
Discusssion
Login to discuss.