Ask Question
21 November, 03:32

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.

+4
Answers (1)
  1. 21 November, 06: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?
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 and Technology if you're in doubt about the correctness of the answers or there's no answer, then try to use the smart search and find answers to the similar questions.
Search for Other Answers