OpenTechBook
  • Home
  • Open Books
    • All Open Books

    • Free eBooks
    • Free Magazines
    • Free Journals

    • Submit an Open Book
  • Quizzes
Home » Quiz » Java Quiz

If a and b are boolean expressions, then a & b is true only if ______.

Difficulty level
  • a or b
  • both a and b
  • either a or b
  • neither a nor b
In Java, the '&' operator is a bitwise AND operator. To perform a logical AND operation on boolean expressions, you should use '&&' instead. It returns true if both 'a' and 'b' are true.
Add your answer
Loading...
Facebook Twitter Linkedin Reddit Pinterest
Java Quiz
Quiz
What will be the initial capacity of a HashSet when no size is defined during its creation?
Which keyword is used in Java to test a condition?

Related Quiz

  • Can a constructor be private in Java?
  • Which of the following primitive data types has the largest size in memory?
  • Which method is used to display a stage in JavaFX?
  • Which access modifier allows a member to be accessed from within its own class only?
  • The keyword ________ is used within a constructor to call another constructor in the same class.

Leave a commentCancel

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

Hot Quiz

Python QuizPHP QuizServlet QuizData Analyst QuizAppium QuizSpring Boot QuizADO.NET QuizAPI Testing QuizNode.js QuizDatabase Testing QuizAWS Lambda QuizAutomation Testing QuizData Science Statistics QuizWeb Services QuizSoftware Testing QuizC Language QuizR Programming QuizC++ QuizBootstrap QuizAlgorithm Quiz
Copyright © 2024 Open Tech Book
  • About
  • Contact
  • FAQ
  • DMCA
  • Disclaimer
  • Privacy Policy