asked 168k views
2 votes
What is the output of the attached code? *

Square s1 = new Square (4);
Square s2 = new Square (4);
s1.setRadius (2) ;
System.out.println("The area is " + (s2.getLength()*s2.getLength (
O The area is 4
O The area is 2
The area is 16
O The area is 6
O The area is 8

asked
User Anu
by
7.7k points

1 Answer

2 votes
S1 B. Is the answer
Ur welcome
answered
User Alec Gerona
by
8.7k points
Welcome to Qamnty — a place to ask, share, and grow together. Join our community and get real answers from real people.