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 class and its types?
What is the purpose of static methods and variables?
What are different types of states exist for a thread?
How to sort list of list in java?
What are generic methods?
Difference between static synchronization vs. Instance synchronization?
What is the difference between preparedstatement and statement in java?
What is a constructor, constructor overloading in java?
What is the difference between multitasking and multithreading in Java
What is java in detail?
What are different types of references?
What is string pool?
What is linkedlist in java?
Explain the difference between serializable and externalizable in java?
Difference between error and exception