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 Method 2 Compile time error as final method can't be overloaded Method 1 None of these Method 2 Compile time error as final method can't be overloaded Method 1 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.0 0.5 10.0 1.0 0.0 0.5 10.0 1.0 ANSWER DOWNLOAD EXAMIANS APP
JAVA Constructors and Methods class A{ A(String s){} A(){}}1. class B extends A{2. B(){}3. B(String s){4. super(s);5. }6. void test(){7. // insert code here8. }9. }Which of the below code can be insert at line 7 to make clean compilation ? None of these A a = new B(); A a = new B(5); All of these A a = new A(String s); None of these A a = new B(); A a = new B(5); All of these A a = new A(String s); ANSWER DOWNLOAD EXAMIANS APP
JAVA Constructors and Methods The main method should be static for the reason It can be executed without creating any instance of the class. None of these It can be accessed easily by the class loader. It can be accessed by every method or variable without any hindrance. It can be executed without creating any instance of the class. None of these It can be accessed easily by the class loader. It can be accessed by every method or variable without any hindrance. ANSWER DOWNLOAD EXAMIANS APP
JAVA Constructors and Methods In which area of memory, the system stores parameters and local variables whenever a method is invoked? Stack Storage Area Heap Array Stack Storage Area Heap Array ANSWER DOWNLOAD EXAMIANS APP
JAVA Constructors and Methods The finalize() method is called just prior to A variable goes out of scope. An object, variable or method goes out of scope. An object or variable goes out of scope. Before garbage collection. None of these A variable goes out of scope. An object, variable or method goes out of scope. An object or variable goes out of scope. Before garbage collection. None of these ANSWER DOWNLOAD EXAMIANS APP