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

Can you give names of Container classes?

1857


Why singleton is not thread safe?

568


What is the biggest integer?

555


What does java se mean?

591


Can I overload to string method

969






Compare Mutex and Semaphore in java.

562


How many types of interfaces are there?

578


What is the inheritance?

553


How to sort an array from smallest to largest java?

548


How do you end a program?

552


Does constructor creates the object ?

586


What is the use of arrays tostring () in java?

524


Difference between class#getinstance() and new operator ?

651


What all access modifiers are allowed for top class ?

713


Can a static class have a constructor?

522