Question: Does the following bold red code cause any problems? public class Circle private double radius = 1 . 0 , / * Find the

Does the following bold red code cause any problems?
public class Circle
private double radius =1.0,
/*" Find the area of this circle*/ double getArea)
return fadius * radius * Math.PI:
public static void main(String args)
Circle myCircle = new Circle();
System.out printin("Radius is"+ myCircle radius);

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!