VTU Computer Science (Semester 7)
JAVA and J2EE
December 2015
Total marks: --
Total time: --
INSTRUCTIONS
(1) Assume appropriate data and state your reasons
(2) Marks are given to the right of every question
(3) Draw neat diagrams wherever necessary


1 (a) List and explain the Java buzzwords.
8 M
1 (b) Explain with example
i) >>> ii) Short circuit logical operator iii) for each.
6 M
1 (c) Explain different access specifiers in Java with examples.
6 M

2 (a) What is meant by instance variable hiding? How to overcome it?
4 M
2 (b) What is exception? Explain the different exception handling mechanisms with an example.
8 M
2 (c) What is an applet? Write an applet program to display the message 'WELCOME TO VTU BELGAUM'. Set the background color to green and foreground to red.
8 M

3 (a) What is thread? Explain two ways of creating thread.
8 M
3 (b) What is synchronization? Explain the producer consumer problem with a program.
8 M
3 (c) Explain KeyEvent and MouseEvent class.
4 M

4 (a) Create swing applet that has two buttons named beta and gamma. When either of the buttons pressed if should display 'beta was pressed' and 'gamma was pressed' respectively.
6 M
4 (b) Explain different types of swing buttons with syntax.
8 M
4 (c) Write a program to create table with headings 'frame, lname, age' and insert at least 5 records.
6 M

5 (a) Describe the various steps of JDBC process with suitable exception handling blocks.
10 M
5 (b) Explain the different types of statement object, give example for each.
10 M

6 (a) Explain the different stages in the life cycle of servlet.
6 M
6 (b) Write a short note on HttpRequest and HttpResponse.
6 M
6 (c) What is cookie? List out the methods defined by cookie. Write a program to add a cookie.
8 M

7 (a) What is JSP? Explain different types of JSP tags by taking suitable examples.
10 M
7 (b) What is RMI? Describe with code snippet RMI at client and server side.
10 M

8 (a) What is deployment descriptor? List the deployment descriptor for EJB2.0.
6 M
8 (b) Explain (i) JAR File (ii) Stateless bean versus statefull bean.
6 M
8 (c) Explain with a skeleton entity Java bean.
8 M



More question papers from JAVA and J2EE
SPONSORED ADVERTISEMENTS