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

Answer Posted / vijay

U cant call other class method without object.static member
is common for all object.if u want set some values for
specific object then the object is necessary

Is This Answer Correct ?    5 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How do you remove an element from an arraylist in java?

460


What is difference between java and java ee?

554


Is java good for beginners?

578


What are the topics in advance java?

512


How many times finalize method will be invoked? Who invokes finalize() method in java?

572






What is a line break example?

576


What do you mean by global variable?

524


Why wait and notify methods are declared in object class?

599


Why is multiple inheritance not supported in java?

557


What is parse method?

534


What class of exceptions are generated by the java run-time system?

627


Difference between overriding and overloading in java?

575


Is java owned by oracle?

522


What is difference between adapter class and listener?

495


Is null in java?

549