Do as directed.
[7 marks]We can’t extend _____ class in java. ii) _____ class is the cosmic super class of all classes in java. iii) We can’t create objects of concrete class in java.(True/False) iv) We can’t use multiple inheritance in java.(True/False)
[ marks]Write the correct syntax to write 7 as octal constant in java. vi) Define Garbage collection. vii) What is the size of char data type in java?
[ marks]List and explain buzzwords of java.
[7 marks]Explain use of static, final, this and super keywords in java.
[7 marks]What are constructors? Explain overloading of constructors with a suitable example.
[7 marks]i) Give difference between following
[4 marks]String and StringBuffer
[ marks]== and equals() (String class) ii) What is an array? How can we use array in java? Explain for each loop to use with array.
[3 marks]What is an interface? How it overcomes the problem of multiple inheritances in java? Explain with example.
[7 marks]What is package? How can we create and import packages in java? Explain with suitable example.
[7 marks]What are abstract classes in java? How it can be useful? Explain with example.
[7 marks]Explain boxing, unboxing and auto-boxing in java.
[7 marks]What is an exception? How can we handle exceptions in java? Explain with a suitable example.
[7 marks]Explain collection framework in java. Discuss any two interfaces of collection framework.
[7 marks]What is a thread? What are the different ways of creating threads in java? Explain anyone with a suitable example.
[7 marks]What are custom exceptions? How it is useful? Explain with example.
[7 marks]Write a program to copy contents of one file to another. Name of both the files must be passed from command line. Implement necessary exception handling.
[7 marks]What is thread synchronization? Explain with a suitable example.
[7 marks]Explain generics in java. How can we define a generic class in java? Explain with code snippet.
[7 marks]What are InputStream, OutputStream, Reader and Writer class in java. Explain any one with its methods.
[7 marks]