JAVA Constructors and Methods What is Math.floor(3.6)? 4 3 3.0 4.0 4 3 3.0 4.0 ANSWER DOWNLOAD EXAMIANS APP
JAVA Constructors and Methods public class Test { }What is the prototype of the default constructor? Test(void) Test( ) None of these public Test( ) public Test(void) Test(void) Test( ) None of these public Test( ) public Test(void) 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);}} Method 2 Method 1 Compile time error as final method can't be overloaded None of these Method 2 Method 1 Compile time error as final method can't be overloaded None of these ANSWER DOWNLOAD EXAMIANS APP
JAVA Constructors and Methods Which of the modifier can't be used for constructors? private static protected public private static protected public ANSWER DOWNLOAD EXAMIANS APP
JAVA Constructors and Methods The implicit return type of a constructor is None of these void A class object in which it is defined. There is no return type. None of these void A class object in which it is defined. There is no return type. 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); }} None of these long Compilation fails Compilation clean but throws RuntimeException int None of these long Compilation fails Compilation clean but throws RuntimeException int ANSWER DOWNLOAD EXAMIANS APP