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 is an eror in java?
What does flag mean in java?
Differentiate between a constructor and a method? Can we mark constructors final?
When should I use stringbuffer?
In how many ways we can do synchronization in java?
What happens if I remove static from main method?
What are the differences between this and super keyword?
What is string [] java?
Can we assign integer value to char in java?
Can an anonymous class be declared as implementing an interface and extending a class in java programming?
What is the difference between form & report?
How can constructor chaining be done using this keyword?
Why main method is called first in java?
Can finally block be used without a catch?
What are the Main functions of Java?