Question: public class ClownFish { int gills = 0 , double weight = 2 ; { int fins = gills; } void print ( int length

public class ClownFish {
int gills =0, double weight=2;
{ int fins = gills; }
void print(int length =3){
System.out.println(gills);
System.out.println(weight);
System.out.println(fins);
System.out.println(length);
}}

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 Programming Questions!