Multiple choice technology databases

Which of the following statement is False?

  1. out is a PrintStream object

  2. Java support pointers

  3. AWT components are heavy-weight

  4. An abstract class has to be sub-classed

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

Java intentionally does NOT support pointers to eliminate entire classes of bugs (dangling pointers, memory leaks, unsafe access). Java uses references instead, which are safer because they can't point to arbitrary memory addresses. The 'out' object in System.out is a PrintStream. AWT components are heavy-weight (peer-based). Abstract classes must be sub-classed to be instantiated.