Multiple choice technology programming languages

Which of the following statement is False?

  1. The throw keyword denotes a statement that causes an exception to be initiated

  2. A class that is declared without any access modifiers is said to have package or friendly access

  3. A class inherit the constructors of its superclass

  4. The primitive types are byte, char, short, int, long, float, double, and boolean

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

The question asks which statement is false. Constructors are NOT inherited in Java - each class defines its own constructors, and a subclass must explicitly call a superclass constructor using super(). The other statements are true: throw initiates exceptions, classes without modifiers have package-private access, and the listed types are Java's eight primitives.