JAVA Constructors and Methods The variables declared in a class for the use of all methods of the class are called None of these instance variables reference variables objects None of these instance variables reference variables objects ANSWER DOWNLOAD EXAMIANS APP
JAVA Constructors and Methods public class MyClass{ }For the above class(MyClass) what is the correct way of declaring constructor? public MyClass(void){} 1 and 3 MyClass(){} MyClass(void) {} public MyClass(){} public MyClass(void){} 1 and 3 MyClass(){} MyClass(void) {} public MyClass(){} 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( ) ) ) ; }} 1.0 0.0 0.5 10.0 1.0 0.0 0.5 10.0 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 Compilation fails int Compilation clean but throws RuntimeException None of these long Compilation fails int Compilation clean but throws RuntimeException None of these ANSWER DOWNLOAD EXAMIANS APP
JAVA Constructors and Methods Which of the modifier can't be used for constructors? static protected private public static protected private public ANSWER DOWNLOAD EXAMIANS APP
JAVA Constructors and Methods What is Math.floor(3.6)? 3.0 4.0 3 4 3.0 4.0 3 4 ANSWER DOWNLOAD EXAMIANS APP