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
Can classes declared using the abstract keyword cab be instantiated?
Why does the integer quotient -0/3 yield 0, but the double quotient -0.0/3.0 yields – 0.0?
Is java code slower than native code?
Detail discussions on JVM, memory management and garbage collector.
how we can make a read-only class in java?
What is the difference between class forname and new?
Is a method a function?
What is java used for on a computer?
What is the difference between the Reader/Writer class hierarchy and the InputStream/OutputStream class hierarchy?
What is stack explain?
Explain the difference between an object-oriented programming language and object-based programming language?
What is meant by the value of a variable?
Can I import same package/class twice?
When do we use synchronized blocks and advantages of using synchronized blocks?
What is meant by call by reference?