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

Answer Posted / arun kumar maurya

there is no need to create object for static data member
because they define in class and take memory at load
time.while non static required memory dynamically so object
creation is necessary for that.object is created to
allocate the memory while in the case of static memory
already created.

Is This Answer Correct ?    2 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are the pillars of java?

661


What does localhost mean?

700


What is externalizable?

810


How does predicate work in java?

758


What does the three dot emoji mean?

800


Why do we need variables?

712


What is the difference between the paint() and repaint() methods?

789


Explain thread life cycle in java?

778


Can you inherit a constructor java?

802


What are drawbacks of singleton class?

701


Does constructor creates the object ?

794


Can a string be null?

728


What are the ways in which a thread can enter the waiting state?

701


Describe the process as to how substring() methodology mechanisms in java.

774


Does java support Operator Overloading?

815