Java OCA OCP Practice Question 95

Question

Which of the following statements about Java is true?

  • A. Java is a procedural programming language.
  • B. Java allows method overloading.
  • C. Java allows operator overloading.
  • D. Java allows direct access to objects in memory.


B.

Note

Java is object oriented, not procedural, so Option A is a false statement.

Java allows method overloading in subclasses, so Option B is correct.

Operator overloading is permitted in languages like C++, not Java, so Option C is also untrue.

Option D is not a true statement as the JVM manages the location of objects in memory that can change and is transparent to the Java application.




PreviousNext

Related