1. The program has a compilation error because t is defined in both the main() method and the constructor Test().
  2. The program compiles fine, but it does not run because you cannot use the keyword this in the constructor.
  3. The program compiles and runs and displays nothing.
  4. The program compiles and runs and displays test.
4 views

1 Answers

Answer: Option 4

4 views

Related Questions