Circle c = new Circle (5); Cylinder c = cy;

Analyze the following code:
Circle c = new Circle (5);
Cylinder c = cy;


A. The code has a compile error.
B. The code has a runtime error.
C. The code is fine.

The correct answer is A


Java

Learn More Multiple Choice Question :