Professional Documents
Culture Documents
©
¦
5. a) What is Inheritance? Explain various types of Inheritance and also write its
advantages and disadvantages.
b) Write a simple java program using multi-way branch statement, and explain.
¦
1. a) Write a java program using any five String library functions.
b) What is a constructor? Describe its special properties.
4. a) Write a Java program to covert the given decimal number into binary number
using non-recursion.
b) What are nested classes and inner classes? Demonstrate with an example.
5. a) With an example, explain scope and lifetime of variables.
b) Compare string and string Buffer.
¦
¦
1. Explain in detail the process of creating, defining, importing and accessing a package
with suitable examples.
5. Explain the difference between an interface and a class with an example each.