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

User Anu
by
3.6k points

1 Answer

2 votes
S1 B. Is the answer
Ur welcome
User Alec Gerona
by
3.9k points