Question: What is the output for the following program? b) Read the following program, does it have compilation errors? If yes, what is it and why?
b) Read the following program, does it have compilation errors? If yes, what is it and why? If no, what is the output and why? (8pts) class circle \{ private double radius; public Circle(double radius) \{ radius = radius; public static void main(string[] args) \{ Circle c = new Circle(10.0); System.out.println(c.radius); \}
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
