aliensbrain
  • Home
  • Study
  • Quizzes
  • 🎤AI Practicefree
  • Notebooks
  • Community
  • Sign in
  • Basic Java Programming Quiz 2
  • Java keywords are written in lowercase as well as uppercase.
Multiple choice java

Java keywords are written in lowercase as well as uppercase.

  1. True

  2. False

Reveal answer Fill a bubble to check yourself
B Correct answer
Explanation

Java is case-sensitive and all reserved keywords (like class, public, static, if) must be written in lowercase. Using uppercase would make them identifiers, not keywords, causing compilation errors.

Keep practicing — related questions

  • Directions: In the question below a sentence with four words printed in bold type is given. These are lette...
  • After the declaration: char[] c = new char[100]; what is the value of c[50]?
  • int x = 12; while (x < 10) { x--; } System.out.print(x); What is the result?
  • String[] elements = { "for", "tea", "too" }; String first = (elements.length > 0) ? elements[0] : null; Wha...
  • public static void main(String[] args) { String str = "null"; if (str == null) { System.out.println("null")...
  • public class Yippee2 { static public void main(String [] yahoo) { for(int x = 1; x < yahoo.length; x++) { S...
  • NumberFormat nf = NumberFormat.getInstance(); nf.setMaximumFractionDigits(4); nf.setMinimumFractionDigits(2...
  • System.out.format("Pi is approximately %d.", Math.PI); What is the result?
Play the full quiz 🎤 Practise this topic out loud
Advertisement
© Aliensbrain | all rights reserved
  • About
  • Contact
  • Terms and Condition
  • Privacy Policy