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

Are arrays immutable in java?

538


What is java objectoutputstream?

539


What is a short in java?

494


What are annotations in java?

619


Does java vector allow null?

534






Explain about object oriented programming and its features?

587


Explain the significance of class loaders in bootstrap?

495


What is meant by anonymous class?

587


What is the difference between static and non-static variables in java programming?

515


How does arraylist size increase in java?

529


If a method is declared as protected, where may the method be accessed in java programming?

492


Why do we use predicate in java?

547


Difference between overriding and overloading in java?

569


What is exception handling in java?

570


What is abstract class? Explain

589