Search
.Management Sciences
A. The program has a compilation error because we cannot assign radius to radius.
B. The program has a compilation error because it does not have a main method.
C. The program does not compile because Circle does not have a default constructor.
D. The program will compile, but we cannot create an object of Circle with a specified radius. The object will always have radius 0.
Related Mcqs:
- Inheritance means ?
- A. Sub class create object of super class B. Sub class extends Base class C. Sub class extends super class D. All of the above...
- The object is created with “new” keyword ?
- A. At Compile-time B. At run-time C. Depends on the code D. None of these...
- Suspend thread can be revived by using ?
- A. yield() method B. Suspend() method C. start() method D. resume() method...
- Interfaces helps in which type of inheritance ?
- A. Multiple inheritance B. Multilevel inheritance C. Hierarchical inheritance D. None of above...
- Java is known as ___________ stage language?
- A. 1 B. 2 C. 3 D. 4...
Recent Comments