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 the purpose of the return statement?
Explain the differences between static and dynamic variables?
What is the difference between procedural and object-oriented programs?
Are static members inherited to sub classes?
Why java applets are more useful for intranets as compared to internet?
How do you use nextline in java?
What is meant by memory leak?
What do you mean by hashing?
Can a class have a static inner class?
What is the difference between hashmap and hashtable? What is an interface?
What technique is carried out to find out if a particular string is empty?
What is the static method?
How can an object be unreferenced?
Can we inherit inner class?
What are the 7 types of characters?