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
Can sleep() method causes another thread to sleep?
how to create multithreaded program? Explain different ways of using thread? When a thread is created and started, what is its initial state? : Java thread
Explain all java features with real time examples
what is singleton class in java?
What is the primary benefit of encapsulation?
Can we nested try statements in java?
Can a lock be acquired on a class in java programming?
What is a substring of a string?
How does split work in java?
How do I start learning java?
How to create com object in Java?
How to sort array in descending order in java?
What about method local inner classes or local inner classes in java?
What is nullpointerexception?
Why is stringbuffer faster than string?