JAVA Constructors and Methods In which area of memory, the system stores parameters and local variables whenever a method is invoked? Storage Area Heap Array Stack Storage Area Heap Array Stack ANSWER DOWNLOAD EXAMIANS APP
JAVA Constructors and Methods The finalize() method is called just prior to 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 A variable goes out of scope. An object, variable or method goes out of scope. An object or variable goes out of scope. ANSWER DOWNLOAD EXAMIANS APP
JAVA Constructors and Methods Which of these is a legal definition of a method named examveda assuming it throws IOException, and returns void. Also assume that the method does not take any arguments. Select the one correct answer. void examians() {} throws IOException void examians() throws IOException{} void examians(void) throws IOException{} void examians() throw IOException{} examians() throws IOException{} void examians() {} throws IOException void examians() throws IOException{} void examians(void) throws IOException{} void examians() throw IOException{} examians() throws IOException{} ANSWER DOWNLOAD EXAMIANS APP
JAVA Constructors and Methods public class Test { }What is the prototype of the default constructor? public Test( ) public Test(void) Test( ) None of these Test(void) public Test( ) public Test(void) Test( ) None of these Test(void) ANSWER DOWNLOAD EXAMIANS APP
JAVA Constructors and Methods The following code contains one compilation error, find it?public class Test {Test() { } // line 1static void Test() { this(); } // line 2 public static void main(String[] args) { // line 3Test(); // line 4}} At line 2, constructor call At line 1, constructor Tester must be marked public like its class At line 3, compilation error, ambiguity problem, compiler can't determine whether a constructor At line 4 At line 2, constructor call At line 1, constructor Tester must be marked public like its class At line 3, compilation error, ambiguity problem, compiler can't determine whether a constructor At line 4 ANSWER DOWNLOAD EXAMIANS APP
JAVA Constructors and Methods Which of the modifier can't be used for constructors? public private protected static public private protected static ANSWER DOWNLOAD EXAMIANS APP