Java Exam Paper
Java Exam Paper
2) Which of the following is a method having same name as that of its class?
a) finalize b) delete c) class d) constructor
8) Which operator is used by Java run time implementations to free the memory of an
object when it is no longer needed?
a) delete b) free c) new d) none of the mentioned
Q2.
a) Explain different operators available in Java. (OR)
Q3.
a) Define polymorphism. Explain function overloading with suitable example. (OR)
(OR)
Q5.
a) Which all classes can be overloaded?
a) Constructors b) Methods c) None of the mentioned