BCA 2nd YEAR JAVA PROGRAMMING Last & Previous Year Question

BCA 2nd Year JAVA PROGRAMMING Previous Question Paper

BCA 2nd Year JAVA PROGRAMMING Paper 2013 Question Paper



Part-A 10 x 1/5 = 15

1 What is the base class of all java classes?
2 What is the return type of constructor?
3 Why java is a platform-independent language?
4 What is the final variable?
5 What is the range of long data types?
6 What will be the output of the following code :
int a = 10;
System.out.println (a >> 2);
7 What is the full form of CORBA?
8 How java bean is different from a normal java program?
9 Which operator in java is known as the ternary operator?
10What is the difference between string and string buffer classes?

Part-B 5 x 3 = 15

11 What is method overloading? Explain it with an example.
12 Write a program to create your own exception if the marks entered are less than 0 or greater than 100.
13 Write a short note on Dictionary class.
14 What is the final class? How it is useful?
15 Explain various methods of graphics class.

Part-C 7,7,6 = 20

16. Explain the life cycle of Thread? Give an example to explain the multithreading concept in java.
What is a constructor? Explain various types of contractors with suitable examples.

17 Write a program in java to create an the applet to draw a bar chart for the following data :
Year     Number of Students 
2014      50 
2015      70 
2016      80 
2017      60
(a) Explain the life cycle of the thread.
(b) Write a program to create three thread classes and kill the first thread after a few steps, forcefully remove the second thread after some iterations from the execution of that thread, and put the third thread in the blocked state for 10 milliseconds. Also, explain the output of this program.

18. (a) What is JDBC-ODBC Bridge?
      (b) Write a program to design the following form and save the data in the database :
Employee     Emp ID     Emp Name     Basic     DA     Save      Cancel
Write short notes on :
(i) RMI
(ii) CORBA