Do as directed: (I) Define the followings: Encapsulation Generic Class Garbage Collection this keyword (II) List and explain the steps for creating and using package in java.
[3 marks]What is String? Explain various methods of String class.
[7 marks]Explain use of break and continue with proper example.
[7 marks]What is constructor? Explain various types of constructor in details.
[7 marks]What is method overloading? Explain with example.
[7 marks]What is inheritance? Explain various types of inheritance.
[7 marks]How can we restrict that object of class cannot be created? In that case, how can we execute the code of that class?
[7 marks]How nested class and inner class are helpful in java? Explain with example.
[7 marks]Explain use of super keyword with proper example.
[7 marks]What is object class? List and explain various methods of object class in details.
[7 marks]What is interface? Can an interface extend other interface? Justify with example.
[7 marks]Explain usage of final keyword in details.
[7 marks]What is exception? Explain user define exception with example.
[7 marks]What is thread? Draw and explain life cycle of thread in details.
[7 marks]Create a class product(id, name, price, description). Create three objects of product and write them in product.dat file. Read these three objects from product.dat file and display their details on the screen.
[7 marks]What is boxing and un-boxing? Explain in details.
[7 marks]Write a multi threaded program in which first thread will print from 1 to 10000, and second thread will print from 10000 to 1.
[7 marks]