Question: What follows is a Java program excerpt.class Circle { int setVariable ( int s ) { int r; r = 6 ;return s + r;

What follows is a Java program excerpt.class Circle{int setVariable(int s){ int r; r=6;return s+r;}}public class ShowArea{public static void main(String args[]){Circle cir= new Circle();int a; a= cir.setVariable(8);}}In the above program,(i) which variables are static variables?(ii) Which variables are stack dynamic variables?(iii) And which variables are explicit-heap dynamic variables?

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!