QUESTION 11 What do you understand by an instance variable and a local variable? O A. Instance variables are those varia
Posted: Sun May 15, 2022 12:56 pm
QUESTION 11 What do you understand by an instance variable and a local variable? O A. Instance variables are those variables that are accessible by all the methods in the class. They are declared outside the methods and inside the class. O B. Local variables are those variables present within a block, function, or constructor and can be accessed only inside them. The utilization of the variable is restricted to the block scope. O C. Any instance can access local variable. O D. Both A and B QUESTION 12 How is an infinite loop declared in Java? O A. for (int = 0;i<10;i+Y } O B. for (int = 0;i>10;i++){ ...... } O C. for (int = 0;i<10;i-- ...... } O D. for (int = 0;i=10;i++) ...... }