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

When we can access the static data member without creating
the object what is the need of the object in java.

Answer Posted / viswa

The question is "when we can access the static data member
with out creating object?

To access a static member of data we no need to create an
object, using class name we can access that static data member.

What is the need of the object in java?

Object is required to access the instance variables as well
as instance methods in the class.With out the object we
can't access them.

Is This Answer Correct ?    7 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Can I override protected method in java?

1026


What super () does in java?

870


Why stringbuilder is not thread safe?

972


Can we call a non-static method from inside a static method?

962


Describe different states of a thread.

946


when you will synchronize a piece of your code? : Java thread

969


How does queue work in java?

940


What is a final class ?

1096


What are functions in java?

905


What is the difference between hashmap and hashtable? What is an interface?

1087


What is a protected void?

883


In which order the iterator iterates over collection?

951


What is the difference between menuitem and checkboxmenu item?

1280


Explain inheritance in java?

937


What is the difference between path and classpath variables?

979