LOADING

Questions

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

Q-1(a)

List and explain various features of java.

(7)
Q-1(b)

Explain the words super, static, final and this with the help of example.

(7)
Q-2(a)

Explain constructor and finalizer with the help of example.

(7)
Q-2(b)

Compare String with StringBuffer. Also write a program  to count occurrence
of character in a string.

(7)
ORQ-2(b)

Compare List, Set  and Map  interfaces. Also  compare ArrayList, TreeSet  and
HashMap classes in java.

(7)
Q-3(a)

Explain Overloading and Overriding with example.

(7)
Q-3(b)

What is Layout? Explain various Layout Managers in java.

(7)
OR
Q-3

Write a note on (Any two) 
  (a)  JavaBeans   
  (b)  Swing in JAVA   
  (c)  Network programming in Java

(14)
Q-4(a)

Draw and explain lifecycle of Applet.

(7)
Q-4(b)

Write a program to count the total no. of chars, words, lines, alphabets, digits, white
spaces in a given file.

(7)
OR
Q-4(a)

Draw and explain life cycle of thread. Also list and explain various methods of
thread.

(7)
Q-4(b)

Write  a  java  application  that  has  three  Buttons  labeled  Red,  Green,  Blue  &  on
clicking  the background color should change accordingly & have a  label displaying
the color selected.

(7)
Q-5(a)

What  is Exception? Give  some  of Built-in  exceptions  in  java. Also give  difference
between throw and throws.

(7)
Q-5(b)

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)

Write an application that executes two threads. One thread displays "Good  Morning"
every  1000 milliseconds &  another  thread  displays  "Good  Afternoon"  every  3000
milliseconds. Create the threads by implementing the Runnable  interface.

OR
Q-5(a)

What is package? Explain steps to create package with example.

(7)