1

Choose the correct statement public class Circle{ private double radius; public Circle(double radius){ radius = radius; } }

Correct Answer: The program will compile, but we cannot create an object of Circle with a specified radius. The object will always have radius 0.

Make the most of this question

This page focuses on one JAVA MCQs question from Programming. After checking the answer, return to the topic list to practice more or run a timed set.

JAVA MCQs MCQ: Choose the correct statement public class Circle{ private double radius; public Circle(double radius){ radius = radius; } } | Extra Education