JAVA Constructors and Methods In which area of memory, the system stores parameters and local variables whenever a method is invoked? Stack Storage Area Array Heap Stack Storage Area Array Heap ANSWER DOWNLOAD EXAMIANS APP
JAVA Constructors and Methods Determine Output:class A{public static void method(int i){System.out.print("Method 1");}public static int method(String str){System.out.print("Method 2");return 0;}}public class Test{ public static void main(String args[]){A.method(5);}} None of these Compile time error as final method can't be overloaded Method 1 Method 2 None of these Compile time error as final method can't be overloaded Method 1 Method 2 ANSWER DOWNLOAD EXAMIANS APP
JAVA Constructors and Methods What is the output of the above program ?class Num { Num(double x ){ System.out.println( x ) ; } }public class Test extends Num { public static void main(String[] args){ Num num = new Num( 2 ) ; } } Compile time error 2.0 None of these 0 Compile time error 2.0 None of these 0 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 public class Test { }What is the prototype of the default constructor? None of these Test(void) public Test( ) Test( ) public Test(void) None of these Test(void) public Test( ) Test( ) public Test(void) 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 instance variables reference variables None of these objects instance variables reference variables None of these objects ANSWER DOWNLOAD EXAMIANS APP