When we can access the static data member without creating
the object what is the need of the object in java.
Answer Posted / viswa
The question is "when we can access the static data member
with out creating object?
To access a static member of data we no need to create an
object, using class name we can access that static data member.
What is the need of the object in java?
Object is required to access the instance variables as well
as instance methods in the class.With out the object we
can't access them.
| Is This Answer Correct ? | 7 Yes | 2 No |
Post New Answer View All Answers
Explain notify() method of object class ?
What is the collections api in java programming?
Can we override protected method in java?
What is compareto () in java?
Where is const variable stored?
Why are getters and setters used?
Which is bigger double or float?
what is the volatile modifier for? : Java thread
How is hashcode calculated in java?
How to provide security in java
What is t type java?
What about interrupt() method of thread class ?
Explain about varargs in java?
What is the purpose of encapsulation?
Why is a constant variable important?