Java Programming Language MCQ Java Constructor and Methods
⚠ Report ✓ Question Verified Copy Link
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(); } }which one is correct
Learn More MCQ Questions from Java Programming Language MCQ Java Constructor and Methods