Ask Question
30 July, 16:39

Examine the following code.

Object obj = new Integer (5);

Which of the following statements is true?

The declared type of obj is Object. The actual type is also Object.

The declared type of obj is Integer. The actual type is also Object.

The declared type of obj is Object. The actual type is Integer.

The declared type of obj is Integer. The actual type is also Integer.

+1
Answers (1)
  1. 30 July, 20:13
    0
    The declared type of obj is Object but it is assigned an actual Integer object type of value 5.
Know the Answer?
Not Sure About the Answer?
Get an answer to your question ✅ “Examine the following code. Object obj = new Integer (5); Which of the following statements is true? The declared type of obj is Object. ...” in 📙 Computers & Technology if there is no answer or all answers are wrong, use a search bar and try to find the answer among similar questions.
Search for Other Answers