Single Choice Not Set

QWhat will be the output?
class MyClass{
      public String test(){
            try{
                  System.out.print("One");
                  return "";
            }
            finally{
                  System.out.print("Two");
            }
      }
}

public class Test{
      public static void main(String args[]){
            MyClass m =  new MyClass();
            m.test();
      }
}

ID: #2323 Java Exception MCQ 1,009 views
Question Info
#2323Q ID
Not SetDifficulty
Java Exception MCQTopic

Choose the Best Option

Click any option to instantly check if you're correct.

  • A One
  • B Two
  • C One Two
  • D Compilation Error
Correct Answer

Explanation

One Two

Share This Question

Challenge a friend or share with your study group.