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 are the drawbacks of reflection?
Why do we create threads in java?
Can you use abstract and final both with a method?
How many types of constructors are used in java?
What are the different approaches to implement a function to generate a random number?
What is the difference between C++ and Java and your preferences?
What is the indent key?
What is a string what operation can be performed out with the help of a string?
What are the advantages of passing this into a method instead of the current class object itself?
What is the difference between the size and capacity of a vector?
What is * argv?
How do you clear a list in java?
What does %4d mean in java?
Why chararray() is preferred over string to store the password?
What restrictions are placed on method overriding?