Multiple choice technology programming languages

Can we declare derived class first and then base class in java?

  1. True

  2. False

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

Java allows declaring a derived class before its base class in source code. The compiler reads the entire file, so order doesn't matter. However, this is poor practice for readability. The statement is technically True.