JAVA Constructors and Methods What will be the return type of a method that not returns any value? None of these double int void None of these double int void ANSWER DOWNLOAD EXAMIANS APP
JAVA Constructors and Methods What is Math.floor(3.6)? 4 4.0 3.0 3 4 4.0 3.0 3 ANSWER DOWNLOAD EXAMIANS APP
JAVA Constructors and Methods Which of the modifier can't be used for constructors? static public protected private static public protected private 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);}} Compile time error as final method can't be overloaded Method 2 None of these Method 1 Compile time error as final method can't be overloaded Method 2 None of these Method 1 ANSWER DOWNLOAD EXAMIANS APP
JAVA Constructors and Methods What is the expected output?class Animal {Animal() {System.out.println("Animal");}}class Wild extends Animal{Wild() {System.out.println("Wild");super();}}public class Test {public static void main(String args[]) {Wild wild = new Wild();}} Runtime Exception Wild Animal Animal Wild Compilation Error Runtime Exception Wild Animal Animal Wild Compilation Error 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? Heap Storage Area Stack Array Heap Storage Area Stack Array ANSWER DOWNLOAD EXAMIANS APP