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

What is the use of keywords in java?

1025


How can you avoid serialization in child class if the base class is implementing the serializable interface?

1123


Is intellij better than eclipse?

1143


how can you take care of mutual exclusion using java threads? : Java thread

1093


What is classname class in java?

1127


Java is pass by value or pass by reference? Explain

1028


What happens when you add a double value to a string?

1056


What do you understand by private, protected and public?

1092


What is ‘is-a ‘ relationship in java?

1111


Can you add null to a list java?

1103


Write the algorithm to check the number non-leaf nodes in a tree.

1120


How many types of exception can occur in a java program?

1037


What is the difference between a field variable and a local variable?

1154


Why is the type for real numbers called double?

1014


What super () does in java?

964