Question: Question 110.05 pts Which Java keyword can be used to access the super class version of an overridden method from within the sub class? override

Question 110.05 pts

Which Java keyword can be used to access the super class version of an overridden method from within the sub class?

override
super
new
this
extends

Flag this Question

Question 120.05 pts

Given the following code (assume that the statements compile with NO syntax errors):

Red hot = new Red(); Green top = hot; Orange ocean = new Blue(); hot = ocean;

What is the static type of 'top'?

Green
hot
Red
top

Flag this Question

Question 130.05 pts

Given the following code (assume that the statements compile with NO syntax errors):

Red hot = new Red(); Green top = hot; Orange ocean = new Blue(); hot = ocean;

What is the dynamic type of 'ocean' after all the statements have been executed? (Tip: draw an object diagram!)

Orange
hot
Red
Blue

Flag this Question

Question 140.05 pts

Given the following code (assume that the statements compile with NO syntax errors):

Red hot = new Red(); Green top = hot; Orange ocean = new Blue(); hot = ocean;

What is the dynamic type of 'hot' after all the statements have been executed? (Tip: draw an object diagram!)

Red
ocean
Blue
Orange

Flag this Question

Question 150.05 pts

What determines which version of an overriddenmethod is executed?

the static type of the variable that acts as the 'qualifier' in the method call
the dynamic type of the variable that acts as the 'qualifier' in the method call
the data types of the arguments of the method call
the name of the class where the method call is located
the name of the method

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!