Read this piece of code carefully if("String".toString() == "String") System.out.println("Equal"); else System.out.println("Not Equal");Answers

    1. the code will compile an print “Equal”.
    1. the code will compile an print “Not Equal”.
    1. the code will cause a compiler error.
  1. None of Above


Correct Option: D

Find more quizzes: