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 Java Shutdown Hook?
Is it possible to compare various strings with the help of == operator? What are the risks involved?
what is session in java?
What is binary tree in java?
explain autoboxing in java?
What is data structure in java?
What is variable argument in java?
What is the use of a conditional inclusion statement in Java ?
Can you start a thread twice in Java?
What is the use of default method in interface in java?
What are the escape sequences in java?
How to handle a web browser resize operation?
How is string immutable in java?
What is the unit of plancks constant?
What invokes a thread's run() method in java programming?