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 Major and importance difference between for and foreach loop ?

579


Explain enumeration in java?

577


How big is a pointer?

559


what is the difference between thread and runnable types? : Java thread

554


Can string be considered as a keyword?

584






How can you write a loop indefinitely in java programming?

560


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.

1578


When would you use a static class?

592


What does java se mean?

596


What are the Static and Dynamic Variables? Differentiate them.

613


What is internal iteration in java se 8?

635


Where is core java used?

590


What is the do while loop syntax?

561


How does arrays sort work in java?

614


What are the different conditional statements?

567