JAVA and J2EE : Question Paper May 2016 - Computer Science Engg. (Semester 7) | Visveswaraya Technological University (VTU)
1 Answer

JAVA and J2EE - May 2016

Computer Science Engg. (Semester 7)

(1) Question 1 is compulsory.
(2) Attempt any four from the remaining questions.
(3) Assume data wherever required.
(4) Figures to the right indicate full marks.
1(a) Explain the process of compiling and running the JAVA application, with the help of 'Hello world' program.(8 marks) 1(b) Explain the syntax of for-each loop. Write a JAVA program to search a key element by using for-each loop.(8 marks) 1(c) Correct the errors from the following code and explain:
byte b=50;
(2 marks)
1(d) Write the output of the following code:
byte b;
int j=257;
double d=323,142;
b = (byte) i;
(2 marks)
2(a) What is an applet? Explain different stages in life cycle of applet.(7 marks) 2(b) Create a subclasses Triangle, Rectangle with implementation of area.(7 marks) 2(c) Explain dynamic method dispatch in Java with example program.(6 marks) 3(a) What do you mean by thread? Explain the different ways of creating threads.(8 marks) 3(b) Write a JAVA program to create two threads, one display's 'Computer science' and another displays 'information science' five times.(8 marks) 3(c) Write a JAVA program to find a factorial of N numbers recursively.(4 marks) 4(a) What is swing? Explain important features of swing.(4 marks) 4(b) Explain the following with an example for each:
i) JtextField
ii) Jtable
iii) JcomboBox
(12 marks)
4(c) Explain components and containers in the swing.(4 marks) 5(a) Explain J2EE architecture.(8 marks) 5(b) Briefly explain the callable statement object. Write a program to call stored procedures using callable statement.(8 marks) 5(c) Give JAVA syntax for the following:
i) Selecting the rows from employees table.
ii) Counting number of employees working in 'research' department.
(4 marks)
6(a) What are Servlet? Briefly explain the application of servelet in web programming.(4 marks)

Write short notes on:

6(b)(i) Session tracking(4 marks) 6(b)(ii) Cookies(4 marks) 6(c) Write a JAVA Servlet to read name from client page and say Hello to the name as response.(8 marks) 7(a) What is JSP? Explain the different types of JSP tags.(6 marks) 7(b) What is RMI? Describe the code snippet RMI at client side.(10 marks) 7(c) Write the differences between JSP and Servlets.(4 marks)

Write short notes on:

8(a) Session JAVA beans(5 marks) 8(b) Entity JAVA beans(5 marks) 8(c) JAR file(5 marks) 8(d) Deployment descriptor for EJB 1.1(5 marks)

Please log in to add an answer.