Programming Language Java Control Flow Question #2149
Single Choice Not Set

QWhat will be the result of compiling and runnig the following code:
public class Test{
      public static void main(String... args) throws Exception{
            Integer i = 34;
            int l = 34;
            if(i.equals(l)){
                  System.out.println("true");
            }else{
                  System.out.println("false");
            }
      }
}

ID: #2149 Java Control Flow 795 views
Question Info
#2149Q ID
Not SetDifficulty
Java Control FlowTopic

Choose the Best Option

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

  • A true
  • B false
  • C Compiler error
  • D None of these
Correct Answer

Explanation

true

Share This Question

Challenge a friend or share with your study group.