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
What is main method?
why doesn't java run on all platforms?
Can we initialize the final blank variable?
What is the difference between static class and normal class?
How to Sort Strings which are given in List and display in ascending order without using java api.
Difference between static synchronization vs. Instance synchronization?
Explain serialization and deserialization in java?
How many types of keywords are there?
How many types of constructors are used in java?
What is prime number in java?
Why does it take so much time to access an applet having swing components the first time?
Difference between string s= new string (); and string s = "abv";?
Can I declare a class as private?
What is the difference between JVM and JRE?
Explain wait(), notify() and notifyall() methods of object class ?