JAVA Constructors and Methods In which area of memory, the system stores parameters and local variables whenever a method is invoked? Storage Area Stack Array Heap Storage Area Stack Array Heap ANSWER DOWNLOAD EXAMIANS APP
JAVA Constructors and Methods What is the output for the below code?public class Test{ public static void printValue(int i, int j, int k){ System.out.println("int"); } public static void printValue(byte...b){ System.out.println("long"); } public static void main(String... args){ byte b = 9; printValue(b,b,b); }} long int None of these Compilation fails Compilation clean but throws RuntimeException long int None of these Compilation fails Compilation clean but throws RuntimeException 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. None of these An object, variable or method goes out of scope. An object or variable goes out of scope. Before garbage collection. A variable goes out of scope. None of these An object, variable or method goes out of scope. An object or variable goes out of scope. ANSWER DOWNLOAD EXAMIANS APP
JAVA Constructors and Methods What is Math.floor(3.6)? 3.0 3 4 4.0 3.0 3 4 4.0 ANSWER DOWNLOAD EXAMIANS APP
JAVA Constructors and Methods public class Test { }What is the prototype of the default constructor? None of these Test( ) Test(void) public Test( ) public Test(void) None of these Test( ) Test(void) public Test( ) public Test(void) ANSWER DOWNLOAD EXAMIANS APP
JAVA Constructors and Methods public class MyClass{ }For the above class(MyClass) what is the correct way of declaring constructor? MyClass(void) {} public MyClass(){} MyClass(){} public MyClass(void){} 1 and 3 MyClass(void) {} public MyClass(){} MyClass(){} public MyClass(void){} 1 and 3 ANSWER DOWNLOAD EXAMIANS APP