JAVA Constructors and Methods
public class MyClass{ }For the above class(MyClass) what is the correct way of declaring constructor?

public MyClass(){}
MyClass(){}
MyClass(void) {}
public MyClass(void){}
1 and 3

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

None of these
one one two
Compilation Error
one Exception
two one one

ANSWER DOWNLOAD EXAMIANS APP