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...

Explain about global variables in Java?

Answer Posted / ravikiran(aptech mumbai)

global variables are declared globally and not inside any
method.
They are applicable to all the parts of the class

Is This Answer Correct ?    11 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is formatted output?

906


What is the basic concepts of OOPS?

1141


Justify your answer that you can't define a method inside another method in java, if you can then how?

1097


How do you reverse a word in java?

1006


How do I remove a character from a string in java?

928


What is treeset and treemap in java?

1020


How many types of methods are there?

981


What is the purpose of return statement?

1020


Why do we override tostring method in java?

905


Can we inherit a class with private constructor?

1070


How do you read a char in java?

957


What are the differences between c++ and java?

1081


What do you understand by the bean persistent property?

957


What is the purpose of garbage collection in java, and when is it used?

995


What was java originally called?

910