JAVA 1.In this declaration: ArrayList polygon; what is the data type of the vari
ID: 3573222 • Letter: J
Question
JAVA
1.In this declaration:
ArrayList polygon;
what is the data type of the variable 'polygon'?
2. Assume that the following code has been executed (same for Questions 7 thru 10):
What value is returned by the following expression?
plot.size()
3.Assume that the following code has been executed (same for Questions 7 thru 10):
Which Point is returned by the following expression?
plot.get( 1 )
4.Assume that the following code has been executed (same for Questions 7 thru 10):
Which Point is returned by the following expression?
plot.get( 2 )
Explanation / Answer
Question 1:
what is the data type of the variable 'polygon'
Answer: Object
Question 2:
Answer: Size is 4
Question 3:
Answer: 5,10
Question 4:
Answer: 4,8
Related Questions
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.