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
How do you do math powers in java?
What is java abstraction with example?
Can the garbage collection be forced by any means?
How do you remove duplicates from an array in java?
what is object slice?
what happens when a thread cannot acquire a lock on an object? : Java thread
What is the use of optional ?
What is the difference between a window and a frame in java programming?
Can we override private method?
Which method returns the length of a string?
What are some alternatives to inheritance?
How many bytes are a float?
How do you check if a number is a perfect square?
In how many ways we can do exception handling in java?
What is the difference between object oriented programming language and object based programming language?