Will the line be printed out as a result of the following code execution:
 
     object a = 1;
     object b = 1;
      if(b == a) 
      {
               Console.WriteLine("equal");
      }
 
Explanation
Nothing will be printed out since a and b are reference type variables and they refer to different objects

Follow CodeGalaxy

Mobile Beta

Get it on Google Play
Send Feedback
Cosmo
Sign Up Now
or Subscribe for future quizzes