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 is class and its types?

536


What is the purpose of static methods and variables?

529


What are different types of states exist for a thread?

545


How to sort list of list in java?

660


What are generic methods?

527






Difference between static synchronization vs. Instance synchronization?

557


What is the difference between preparedstatement and statement in java?

547


What is a constructor, constructor overloading in java?

524


What is the difference between multitasking and multithreading in Java

717


What is java in detail?

557


What are different types of references?

526


What is string pool?

625


What is linkedlist in java?

502


Explain the difference between serializable and externalizable in java?

535


Difference between error and exception

5005