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
What are the pillars of java?
What does localhost mean?
What is externalizable?
How does predicate work in java?
What does the three dot emoji mean?
Why do we need variables?
What is the difference between the paint() and repaint() methods?
Explain thread life cycle in java?
Can you inherit a constructor java?
What are drawbacks of singleton class?
Does constructor creates the object ?
Can a string be null?
What are the ways in which a thread can enter the waiting state?
Describe the process as to how substring() methodology mechanisms in java.
Does java support Operator Overloading?