ASSIGNMENT 1
Short questions:-( 2 marks)
1. Define type casting.
2. Explain What gives java write once run anywhere nature.
3. Justify java is a simple and robust language.
4. Write 2 advantages of a compiled and interpreted language over only compiled
language.
5. Write the use of BufferReader class.
6. Differentiate between object oriented and procedure oriented language.
7. What do you mean by class and object ?
8. Explain why java is machine independent?
9. Justify statement.
JVM is plat form dependent.
Long questions:-( 6 marks)
1. What is object oriented paradigm? Explain the various features of OO
paradigm.
2. Distinguish between the following terms.
a. Objects and Classes
b. Data abstraction and Data encapsulation.
c. Inheritance and polymorphism.
3. Write a sample java program to find the GCD of two numbers.