When we can access the static data member without creating
the object what is the need of the object in java.

Answer Posted / avadhut rane

Object is needed to access a non static data member

Is This Answer Correct ?    11 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How do you input a string in java?

497


how can you take care of mutual exclusion using java threads? : Java thread

605


Is there any limitation of using inheritance?

567


Is null keyword in java?

521


What is java thread dump, how can we get java thread dump of a program?

565






Is java an ide?

523


What is a local block?

633


What is the difference between throw and throws in java?

548


Can we override private constructor in java?

500


What are the three parts of a lambda expression?

528


Which package is used for pattern matching with regular expressions?

638


What do you understand by garbage collection in Java? Can it be forced to run?

548


What are decalarations?

632


How do you end a program?

542


Difference between process and thread?

597