Describe the following features of java: 1)Multithreaded,2)Architecture-neutral 3)Interpreted 4)High performance 5) Distributed 6) Portable 7) Dynamic
[7 marks]Explain :this,super,static,final ,finally, static and garbage collection
[7 marks]Write a program that illustrates interface inheritance. Interface Ais extended by A1 and A2. Interface A12 inherits from both P1 and P2.Each interface declares one constant and one method. Class Bimplements A12.Instantiate Band invoke each of its methods. Each method displays one of the constants
[7 marks]What is collection in Java? Differentiate between Vector and Array List..
[7 marks]The Transport interface declares a deliver () method. The abstract class Animal is the super class of the Tiger, Camel, Deer and Donkey classes. The Transport interface is implemented by the Camel and Donkey classes. Write a test program that initialize an array of four Animal objects. If the object implements the Transport interface, the deliver () method is invoked.
[7 marks]Compare String with StringBuffer. Also write a program to count occurrence of character in a string..
[7 marks]Explain inner class and working of concatenation operator + by giving examples.
[7 marks]Write an application that creates and starts three threads. Each thread is instantiated from the same class. It executes a loop with 10 iterations. Each iteration displays string "HELLO", sleeps for 300 milliseconds. The application waits for all the threads to complete & displays the message "Good Bye..."
[7 marks]What is Wrapper class in Java? Explain with examples.
[7 marks]Write a complete program to have 3 Buttons in a frame having exit capabilities. Buttons are to be added in the frame as per the layout of your choice. Count and display number of times each Button being clicked.
[7 marks]Enlist and explain the difference between error and exception. Write a program to handle InterruptedException, IllegalArgumentException using try-cat-finally and throw
[7 marks]Write a method for computing xy by doing repetitive multiplication. x and y are of type integer and are to be given as command line arguments. Raise and handle exception(s) for invalid values of x and y. Also define method main. Use finally in above program and explain its usage.
[7 marks]Write an applet that draws four horizontal bars of equal size & of different colors such that they cover up the whole applet area. The applet should operate correctly even if it is resized
[7 marks]Explain various methods called during execution cycle of the applet. Also explain boarder layout.
[7 marks]Explain Generics in java with demo program. OR1
[7 marks]Write a program that counts the no. of words in a text file. The file name is passed as a command line argument. The program should check whether the file exists or not. The words in the file are separated by white space characters.
[7 marks]Differentiate between abstract class and interface specifying matrices of differences. Write a program to define abstract class, with two methods addition() and subtraction(). addition() is abstract method. Implement the abstract method and call that method using a program(s).
[7 marks]