Fill in the blanks : 1. ___________ is the base class of all classes in java. 2. ___________ package is a default package in java. 3. __________ is known as father of java. 4. _________ block if present, is always executed irrespective of the Occurrence of exception. 5. To declare a variable as constant ________ keyword is useful. 6. In comapreTo() we have to pass ______ number of arguments. 7. When we declare class with final we can't ________ it.
[7 marks]Define Thread. How different way thread is created in Java? Discuss the Thread life cycle with suitable example of java program code.
[7 marks]What is collection framework? Discuss generics in collection framework with suitable example.
[7 marks]Give differences between Comparable and Comparator interface. Also give example.
[7 marks]Distinguish between:
[ marks]abstract class v/s interface
[3 marks]String v/s StringBuffer
[4 marks]Explain Character Stream and Byte Stream with suitable example.
[7 marks]Write a program to copy content of one file in another file. Pass both file names as command line argument.
[7 marks]Discuss BufferedWriter and the BufferedReader class of java I/Owith example.
[7 marks]Write a program to generate 10 random nos. and find its average and nos. more than avg.
[7 marks]What is inheritance? Explain types of inheritance. Also explain how can “interface” concept eliminate code duplicity problem in java which is generated due to multiple inheritance?
[7 marks]Explain various features of java in detail.
[7 marks]Explain the use of abstract and final with reference to variable, method and class with example
[7 marks]Explain exception handling mechanism in java using try, catch, throw, throws and finally with suitable example
[7 marks]Define package. State the steps to create and import a package. Also explain how to set classpath in detail
[7 marks]Define custom exception. Differentiate between checked and unchecked exception (Reported and Unreported exception).
[7 marks]Explain RandomAccessFile with suitable example
[7 marks]Explain Date class and Calendar class with suitable example
[7 marks]