Answer Posted / bhargavi rani
no.becoz java is pure object oriented language.so all the
member functions and datamembers must be write inside the
class.here we can also say that class is an example for
encapsulation.encapsulation is binding data and member
functions in a single unit.
Is This Answer Correct ? | 2 Yes | 2 No |
Post New Answer View All Answers
Is hashset sorted in java?
Which oo concept is achieved by using overloading and overriding?
What is a package in java? List down various advantages of packages.
How to run a JAR file through command prompt?
Can we nested try statements in java?
Can a class extend 2 classes in java?
What is an interface in java? Explain
List some important features of java 10 release?
What is meant by 'Class access modifiers'?
Explain different forms of polymorphism?
What is a singleton in genetics?
What is module in oop?
Why main function is static?
Can inner class be public in java?
What is the difference in between cpp and java? Can u explain in detail?