JAVA Constructors and Methods What is Math.floor(3.6)? 3 4 3.0 4.0 3 4 3.0 4.0 ANSWER DOWNLOAD EXAMIANS APP
JAVA Constructors and Methods The implicit return type of a constructor is 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. None of these ANSWER DOWNLOAD EXAMIANS APP
JAVA Constructors and Methods class MyClass{ MyClass(){ System.out.print("one"); } public void myMethod(){ this(); System.out.print("two"); }} public class TestClass{ public static void main(String args[]){ MyClass obj = new MyClass(); obj.myMethod(); }} one one two None of these two one one one Exception Compilation Error one one two None of these two one one one Exception Compilation Error ANSWER DOWNLOAD EXAMIANS APP
JAVA Constructors and Methods Which of the modifier can't be used for constructors? protected private static public protected private static public 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. It can be accessed easily by the class loader. None of these It can be accessed by every method or variable without any hindrance. It can be executed without creating any instance of the class. It can be accessed easily by the class loader. None of these It can be accessed by every method or variable without any hindrance. ANSWER DOWNLOAD EXAMIANS APP
JAVA Constructors and Methods public class Test { }What is the prototype of the default constructor? None of these public Test(void) public Test( ) Test( ) Test(void) None of these public Test(void) public Test( ) Test( ) Test(void) ANSWER DOWNLOAD EXAMIANS APP