Write Short note on the following:
[7 marks]Byte Code (ii) Polymorphism (iii) Static Initializer Block (iv) Package
[ marks]Interface (vi) Exception (vii) Deamon thread
[ marks]Explain importance of constructor. Discuss the overloading of methods and constructors with suitable java program code.
[7 marks]Explain the difference between the variables of primitive data types and the reference data types.
[7 marks]What do you understand by anonymous Inner class? What is the significance of this class in java program?
[7 marks]Explain the features of Java Programming Language.
[7 marks]What role does an interface play in multiple inheritances? Differentiate between abstract class and an interface. Explain with suitable example.
[7 marks]Define checked exceptions and unchecked exceptions. Explain throw, throws, try and catch keywords with ecample.
[7 marks]What are the access specifiers available in Java? Explain each of them and state which of these can be applied to members of a class and which can be applied to members of a package.
[7 marks]What is method overriding? Explain the uses of this and super keyword with example.
[7 marks]What is Collection framework? Explain the List Interface with Example
[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 difference between Vector and Hashtable class? How the Enumeration interface is useful in Java explain with code?
[7 marks]Write a java program that will write 10 numbers in text file and also read from that file to print that 10 numbers on the screen using byte stream based classes.1
[7 marks]To create two different threads. One thread to display odd numbers between 1 to 40 at every 1 second and other thread to display even numbers between 1 to at every 2 seconds.
[20 marks]Define File. Discuss any six methods of file class.
[7 marks]Explain Random Access File in detail.
[7 marks]Write a program of threads to show inter-communication of two threads: t1 and t2 synchronizing on a shared object. Let t1 print message “ping --->” and t2 print message “<--- pong”. Make the threads execute in a way that the output displays a consistent patterns of “ping ---> <--- pong”
[7 marks]