Question1) Answer all the questions.
(i) Briefly explain Java virtual machine?
(ii) What is scope of variable?
(iii) Distinguish between String and String Buffer.
(iv) Distinguish between call by value and call by reference.
(v) What is garbage collector?
Question2) Briefly explain Type casting? How many type of casting available in Java. Expalin with appropriate example.
Question3) Write a programme to short element of array.
Question4) What is constructor overloading? Describe with appropriate example.
Question5) Answer all the questions.
(i) What is wrapper class?
(ii) What is package, how we compile package.
(iii) How to join two threads, write Java code for joint?
(iv) What is applet? How it works in client system.
(v) Write Java code to draw rectangle.
Question6) What is inheritance. Explain different type of inheritance with coding.
Question7) What is exception? Write a Java programme to handle arithmetic exception.
Question8) Write a programme to read and write in file.