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

What is the difference between stringbuffer and stringbuilder?

1056


Explain try and catch keywords in java?

1205


What is the purpose of garbage collection in java?

1098


How do you write a good declaration?

984


can java object be locked down for exclusive use by a given thread? : Java thread

1099


What does it mean that strings are immutable?

1128


What are the advantages of passing this into a method instead of the current class object itself?

1673


How to perform merge sort in java?

1058


Can we create our own daemon thread?

981


Why does java does not support multiple inheritance? Explain

972


What is hashing principle in java?

1024


What is the use of :: in java?

1012


What is the meaning of find and replace?

1031


What is a 16 bit word?

1000


What is the benefit of using enum to declare a constant?

1103