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

Can a class extend 2 classes in java?

1089


How do you declare a variable?

1138


what is meant by encapsulation?

1128


Why is String immutable?

1112


Can we change the value of static variable?

1012


What is bytecode verifier?

988


What are the advantages of java over C++?

1249


What is static and final keyword in java?

1071


How to make a non daemon thread as daemon?

1108


What is t type java?

1099


What are nested classes in java?

1165


What is json parser in java?

1097


Why is a string immutable?

1065


Write an algorithm for quick sort?

1081


Explain the use of shift operator in java. Can you give some examples?

1033