Explain the expected output of the following code segment?

public class Simplilearn   
{  
public static void main (String args[])   
{  
    System.out.println(100 + 100 +“Simplilearn");   
    System.out.println(“E-Learning Company" + 100 + 100);  
}  
}

The answers for the two print statements are as follows.

  • 200Simplilearn
  • E-Learning Company100100

Comments

Leave a Reply

Your email address will not be published. Required fields are marked *