QUESTION 11 What do you understand by an instance variable and a local variable? O A. Instance variables are those varia

Business, Finance, Economics, Accounting, Operations Management, Computer Science, Electrical Engineering, Mechanical Engineering, Civil Engineering, Chemical Engineering, Algebra, Precalculus, Statistics and Probabilty, Advanced Math, Physics, Chemistry, Biology, Nursing, Psychology, Certifications, Tests, Prep, and more.
Post Reply
answerhappygod
Site Admin
Posts: 899604
Joined: Mon Aug 02, 2021 8:13 am

QUESTION 11 What do you understand by an instance variable and a local variable? O A. Instance variables are those varia

Post by answerhappygod »

Question 11 What Do You Understand By An Instance Variable And A Local Variable O A Instance Variables Are Those Varia 1
Question 11 What Do You Understand By An Instance Variable And A Local Variable O A Instance Variables Are Those Varia 1 (32.65 KiB) Viewed 54 times
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++) ...... }
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!
Post Reply