Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

Question one: Two simple questions for Java. int sophie = 5; Which of the follow

ID: 3599788 • Letter: Q

Question

Question one: Two simple questions for Java.

int sophie = 5;

Which of the following variables are declared as a primitive type? (Note that this is a multiple answer question.)

Which of the following are data types? (Note that this is a multiple answer question.)

Question two:

Consider

1. TV livingRoom = null;

2. TV den;

3. new TV();

4. den = new TV();

Enter the line number of the first creation of an object. Enter x if there is no such line.

Enter the line number of the first creation of an object. Enter x if there is no such line.

Explanation / Answer

Question 1:

in java there are total 8 primitive types:

So sophie variable is of primitive data type (int) only here.

-----------------------------------------------------------------------------------------------------------------------------------------------------

Question 2:

in 3rd line new TV();

the first object is created.because it has used new keyword here.

Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote