LOADING

Questions

BE - SEMESTER-V EXAMINATION - WINTER 2014 -Winter-Dec-2014

Q-1(a)

Describe the following features of java:
 1)Multithreaded,2)Architecture-neutral  3)Interpreted 4)High performance  
5) Distributed 6) Portable 7) Dynamic

(7)
Q-1(b)

Differentiate  between  Method  overloading  and  method  overriding  with
example.

(7)
Q-2(a)

  
Explain the followings with example
 Dynamic Method Dispatch , this, super, final

(7)
Q-2(b)

Write  a  program  to  demonstrate  the  multipath  inheritance  for  the  classes  having relations as shown in figure 1

(7)
ORQ-2(b)

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)
Q-3(a)

What are the benefits of using generic types? 

(7)
Q-3(b)

Differentiate between abstract class and interface.

(7)
Q-3(c)

Discuss public, private, protected and default access modifier with example.

(7)
OR
Q-3(a)

What is collection in Java? Differentiate between Vector and Array List. 

(7)
Q-3(b)

Justify statement.
(i)  JVM is platform dependent.  
(ii)  There is no destructor in Java.

(7)
Q-4(a)

Write a simple GUI application that traces the user’s action such  
Keyboard action.

(7)
Q-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)
OR
Q-4(a)

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)
Q-4(b)

Differentiate String  class    and   StringBuffer    class   with    explanation   of    its
methods.

(7)
Q-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)
OR
Q-5(a)

Explain the following terms with respect to exception handling.
i) try ii) catch iii) throw iv) finally 

(7)
Q-5(b)

What is a thread? Describe the complete life cycle of thread with example.

(7)