1 (a)
Describe the following features of java:
1) Multithreaded
2)Architecture-neutral
3)Interpreted
4)High performance
5) Distributed
6) Portable
7) Dynamic
1) Multithreaded
2)Architecture-neutral
3)Interpreted
4)High performance
5) Distributed
6) Portable
7) Dynamic
7 M
1 (b)
Differentiate between Method overloading and method overriding with example.
7 M
2 (a)
Explain the followings with example
Dynamic Method Dispatch , this, super, final
Dynamic Method Dispatch , this, super, final
7 M
2 (b)
Write a program to demonstrate the multipath inheritance for the classes having relations as shown in figure 1.
7 M
2 (c)
Write a program that illustrates interface inheritance. Interface A is extended
by A1 and A2. Interface A12 inherits from both P1 and P2.Each interface declares one constant and one method. Class B implements A12.Instantiate B
and invoke each of its methods. Each method displays one of the constants
7 M
3 (a)
What are the benefits of using generic types?
3 M
3 (b)
Differentiate between abstract class and interface.
4 M
3 (c)
Discuss public, private, protected and default access modifier with example.
7 M
3 (d)
What is collection in Java? Differentiate between Vector and Array List.
7 M
3 (e)
Justify statement.
(i) JVM is platform dependent.
(ii) There is no destructor in Java.
(i) JVM is platform dependent.
(ii) There is no destructor in Java.
7 M
4 (a)
Write a simple GUI application that traces the user's action such Keyboard action.
7 M
4 (b)
Write a program to replace all 'word1' by 'word2' from a file1, and output is written to file2 file and display the no. Of replacement.
7 M
4 (c)
Create an applet which has a Text Field to accept a URL string, and displays the document of the URL string in a new browser window.
7 M
4 (d)
Differentiate String class and StringBuffer class with explanation of its methods.
7 M
5 (a)
Write a program to create two threads, one thread will print odd numbers and second thread will print even numbers between 1 to 20 numbers.
7 M
5 (b)
Write a program that counts number of characters, words, and lines in a file.
Use exceptions to check whether the file that is read exists or not.
7 M
5 (c)
Explain the following terms with respect to exception handling.
i) try ii) catch iii) throw iv) finally
i) try ii) catch iii) throw iv) finally
7 M
5 (d)
What is a thread? Describe the complete life cycle of thread with example.
7 M
More question papers from Object Oriented Programming Using Java