Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

. Differentiate between instance and local variables.

Answer Posted / nashiinformaticssolutions

For instance, variables are declared inside a class, and the limited to only a specific object.
A local variable can be anywhere inside a method or a specific block of code. Also, the scope is limited to the code segment where the variable is declared.

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Why collection doesn’t extend cloneable and serializable interfaces?

1103


What are the 4 types of characters?

1014


What are different types of constants?

1052


How does linkedhashmap work in java?

1022


What is the difference between access specifiers and access modifiers in java?

1176


Why is singleton class used?

1036


Explain inner classes ?

1129


What is a boolean structure?

1089


Can a class have multiple subclasses?

1108


how to create multithreaded program? Explain different ways of using thread? When a thread is created and started, what is its initial state? : Java thread

1004


What is the maximum size of arraylist in java?

1010


Why is stringbuffer faster than string?

922


What is the difference between error and an exception?

1156


Similarity and difference between static block and static method ?

919


How are the elements of a gridbaglayout organized in java programming?

983