JAVA Constructors and Methods
The finalize() method is called just prior to

An object, variable or method goes out of scope.
Before garbage collection.
An object or variable goes out of scope.
None of these
A variable goes out of scope.

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); }}

int
None of these
Compilation clean but throws RuntimeException
long
Compilation fails

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 Exception
two one one
None of these
one one two
Compilation Error

ANSWER DOWNLOAD EXAMIANS APP