JAVA Constructors and Methods Which of the modifier can't be used for constructors? private public protected static private public protected static ANSWER DOWNLOAD EXAMIANS APP
JAVA Constructors and Methods public class Test { }What is the prototype of the default constructor? public Test(void) public Test( ) Test(void) Test( ) None of these public Test(void) public Test( ) Test(void) Test( ) None of these ANSWER DOWNLOAD EXAMIANS APP
JAVA Constructors and Methods The finalize() method is called just prior to Before garbage collection. A variable goes out of scope. An object, variable or method goes out of scope. None of these An object or variable goes out of scope. Before garbage collection. A variable goes out of scope. An object, variable or method goes out of scope. None of these An object or variable goes out of scope. ANSWER DOWNLOAD EXAMIANS APP
JAVA Constructors and Methods The implicit return type of a constructor is A class object in which it is defined. void There is no return type. None of these A class object in which it is defined. void There is no return type. None of these ANSWER DOWNLOAD EXAMIANS APP
JAVA Constructors and Methods Determine output of the following program.public class Test{ public static void main(String args[]){ System.out.println( Math.floor( Math.random( ) ) ) ; }} 0.5 0.0 10.0 1.0 0.5 0.0 10.0 1.0 ANSWER DOWNLOAD EXAMIANS APP
JAVA Constructors and Methods The main method should be static for the reason It can be accessed easily by the class loader. None of these It can be executed without creating any instance of the class. It can be accessed by every method or variable without any hindrance. It can be accessed easily by the class loader. None of these It can be executed without creating any instance of the class. It can be accessed by every method or variable without any hindrance. ANSWER DOWNLOAD EXAMIANS APP