JAVA Constructors and Methods In which area of memory, the system stores parameters and local variables whenever a method is invoked? Array Heap Stack Storage Area Array Heap Stack Storage Area 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. None of these Before garbage collection. An object or variable goes out of scope. A variable goes out of scope. An object, variable or method goes out of scope. None of these Before garbage collection. An object or variable goes out of scope. A variable goes out of scope. ANSWER DOWNLOAD EXAMIANS APP
JAVA Constructors and Methods What is the output of the program?class Test{ public int display(int x, int y){ return ("The sum of x and y is " + x + y); } public static void main(String args[]){ Test test = new Test(); System.out.println(test.display(4,5)); } } The sum of x and y is 9 does not compile The sum of x and y is 45 None of these The sum of x and y is 9 does not compile The sum of x and y is 45 None of these ANSWER DOWNLOAD EXAMIANS APP
JAVA Constructors and Methods public class Test { }What is the prototype of the default constructor? Test(void) public Test(void) Test( ) None of these public Test( ) Test(void) public Test(void) Test( ) None of these public Test( ) 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( ) ) ) ; }} 10.0 1.0 0.0 0.5 10.0 1.0 0.0 0.5 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