Ask Question

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.

+3
Answers (1)
  1. 30 August, 15:02
    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?
Find 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 the answers seem to be not correct or there’s no answer. Try a smart search to find answers to similar questions.
Search for Other Answers