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 Major and importance difference between for and foreach loop ?
Explain enumeration in java?
How big is a pointer?
what is the difference between thread and runnable types? : Java thread
Can string be considered as a keyword?
How can you write a loop indefinitely in java programming?
there are N number of matchboxes numbered 1...N.each matchbox contain various number of stick.Two player can alternatevely pick some amount of stick from the higest stick containing box . The player is condidered win if there is no stick after his move.Find the final move so that the move player win. Note:In case the number of stick is equal ,pick the stick from the higest numbered box.
When would you use a static class?
What does java se mean?
What are the Static and Dynamic Variables? Differentiate them.
What is internal iteration in java se 8?
Where is core java used?
What is the do while loop syntax?
How does arrays sort work in java?
What are the different conditional statements?