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.
Related Questions
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.