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


Please Help Members By Posting Answers For Below Questions

What are thread safe functions?

514


enlist some features of jdk.

562


What does @override mean?

536


Difference between predicate, supplier and consumer ?

585


What do you mean by inner class in java?

568






What is use of a abstract variable?

543


Give a brief description of java socket programming?

527


What does those terms actually mean included in the j.d.k i.6?

1606


What is a lightweight component?

597


What is hotjava?

559


What is multiple inheritance? Is it supported by java?

528


Are primitives objects?

566


23. Storage space in java is of the form Stack Queue Heap List 24. What is java code embedded in a web page known as Applets Servlets scriptlets snippets 25. Which of the following attributes are compulsory with an tag?. code,height & width. 26. What does 'CODEBASE' in an applet tag specify?. Files absolute path.

2062


What is a marker interface?

580


What is arguments in java?

523