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

What is generic class?

824


What is an enumeration?

748


What is dot operator?

766


Why lambda expression is used in java?

740


Is list ordered in java?

755






Which number is denoted by leading 0x or 0x in java?

802


how to create constants in java?

802


Why is String immutable?

807


What happens if an exception is not handled in a program?

821


What is the significance of continue jump statement? Explain with an example.

991


Is null a value?

764


How can we make a class singleton?

782


What do you mean by boolean?

791


How is java created?

711


How do you bind variables?

745