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 / niranjanravi

Global variables are not possible in java because the
concept of Encapsulation is eliminated here.it is not in
the main() method where we declare variables.

Is This Answer Correct ?    5 Yes 8 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

When should you use arraylist and when should you use linkedlist?

872


Is nullpointerexception checked or unchecked?

968


How do weakhashmap works?

1092


What is ternary operator? Give an example.

1018


What is local declaration?

898


What is a data structure java?

952


How will you call an Applet using Java Script Function?

962


Why put method is used?

961


Can java run on google chrome?

1135


Does variable declaration allocate memory?

983


What is variable declaration and definition?

965


Explain about main thread in java?

1036


What is the best way to findout the time/memory consuming process?

973


How is treeset implemented in java?

954


What does it mean to be immutable?

919