Development
© examsnet.com
Question : 4
Total: 17
The image represents a complete package structure for a set of classes: "com" is the beginning of the fully qualified package name for all classes.
Given this package structure, insert the code needed to make the car class compile and run successfully.
All the three placeholders must be filled.If fewer than three statements are needed, use the"//blank" option.
(i)_______
(ii)_____
(iii)_______
Given this package structure, insert the code needed to make the car class compile and run successfully.
All the three placeholders must be filled.If fewer than three statements are needed, use the"//blank" option.
(i)_______
(ii)_____
(iii)_______
public class Car {
Book book;
Dog dog;
}
a. import com.foo.bar.blatz.*; | b. package com.foo.bar.blatz; |
c. import com.bar.*; | d. import com.*; |
e. package com.bar.*; | f. package com ; |
g. import com.foo.*; | h. /* blank */ |
i. import com.foo.bar.*; | j. import com.foo.bar.Book; |
Go to Question: