JAVA Constructors and Methods The implicit return type of a constructor is A class object in which it is defined. There is no return type. void None of these A class object in which it is defined. There is no return type. void None of these ANSWER DOWNLOAD EXAMIANS APP
JAVA Constructors and Methods The variables declared in a class for the use of all methods of the class are called reference variables None of these instance variables objects reference variables None of these instance variables objects ANSWER DOWNLOAD EXAMIANS APP
JAVA Constructors and Methods public class Test { }What is the prototype of the default constructor? None of these public Test( ) Test(void) Test( ) public Test(void) None of these public Test( ) Test(void) Test( ) public Test(void) ANSWER DOWNLOAD EXAMIANS APP
JAVA Constructors and Methods What will be the return type of a method that not returns any value? void int double None of these void int double None of these ANSWER DOWNLOAD EXAMIANS APP
JAVA Constructors and Methods The finalize() method is called just prior to An object, variable or method goes out of scope. A variable goes out of scope. Before garbage collection. An object or variable goes out of scope. None of these An object, variable or method goes out of scope. A variable goes out of scope. Before garbage collection. An object or variable goes out of scope. None of these ANSWER DOWNLOAD EXAMIANS APP
JAVA Constructors and Methods What is the expected output?public class Profile {private Profile(int w) { // line 1System.out.print(w);}public final Profile() { // line 5System.out.print(10);}public static void main(String args[]) {Profile obj = new Profile(50);}} Won't compile because of line (1); constructor can't be private 10 50 50 Won't compile because of line (5); constructor can't be final Won't compile because of line (1); constructor can't be private 10 50 50 Won't compile because of line (5); constructor can't be final ANSWER DOWNLOAD EXAMIANS APP