aliensbrain
  • Home
  • Study
  • Quizzes
  • 🎤AI Practicefree
  • Notebooks
  • Community
  • Sign in
  • Java Programming Fundamentals Quiz
  • equal() method is used to compare the primitive variables
Multiple choice technology programming languages

equal() method is used to compare the primitive variables

  1. True

  2. False

Reveal answer Fill a bubble to check yourself
B Correct answer

Keep practicing — related questions

  • The equals() method is equivalent to the == operator, unless overridden
  • Integer i1=10; Integer i2=10; (i1.equals(i2++))-->result is
  • Two methods cannot have the same in Java
  • To compare two strings for equality _____________ method is used.
  • What happens when you do if (a==b)? Integer a = new Integer(2); Integer b = new Integer(2);
  • if("String".toString() == "String") System.out.println("Equal");else System.out.println("Not Equal");
  • if("String".toString() == "String") System.out.println("Equal"); else System.out.println("Not Equal");
  • _________ comparison operator is used to check, if $a is equal to $b and they are of the same type.
Play the full quiz 🎤 Practise this topic out loud

Practice this topic

  • Programming Output Evaluation (1721 questions)
Advertisement
© Aliensbrain | all rights reserved
  • About
  • Contact
  • Terms and Condition
  • Privacy Policy