Multiple choice technology databases

Which of the following statements are true?

  1. The return type for a method can be any Java type, including void

  2. An important principal of object oriented programming is implementation hiding

  3. When you perform mathematical calculations on the unlike data type, java will perform a implicit conversion to unify the types

  4. All the Above

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

All three listed statements are true: Java method return types can be any type or void; implementation hiding is a key OOP concept (encapsulation); and Java performs implicit numeric promotions when operating on different numeric types.