1(a)
Explain the process of compiling and running the JAVA application, with the help of 'Hello world' program.
8 M
1(b)
Explain the syntax of for-each loop. Write a JAVA program to search a key element by using for-each loop.
8 M
1(c)
Correct the errors from the following code and explain:
byte b=50;
b=b*2;
byte b=50;
b=b*2;
2 M
1(d)
Write the output of the following code:
byte b;
int j=257;
double d=323,142;
b = (byte) i;
system.out.println(b);
b=(byte)d;
System.out.println(b);
byte b;
int j=257;
double d=323,142;
b = (byte) i;
system.out.println(b);
b=(byte)d;
System.out.println(b);
2 M
2(a)
What is an applet? Explain different stages in life cycle of applet.
7 M
2(b)
Create a subclasses Triangle, Rectangle with implementation of area.
7 M
2(c)
Explain dynamic method dispatch in Java with example program.
6 M
3(a)
What do you mean by thread? Explain the different ways of creating threads.
8 M
3(b)
Write a JAVA program to create two threads, one display's 'Computer science' and another displays 'information science' five times.
8 M
3(c)
Write a JAVA program to find a factorial of N numbers recursively.
4 M
4(a)
What is swing? Explain important features of swing.
4 M
4(b)
Explain the following with an example for each:
i) JtextField
ii) Jtable
iii) JcomboBox
i) JtextField
ii) Jtable
iii) JcomboBox
12 M
4(c)
Explain components and containers in the swing.
4 M
5(a)
Explain J2EE architecture.
8 M
5(b)
Briefly explain the callable statement object. Write a program to call stored procedures using callable statement.
8 M
5(c)
Give JAVA syntax for the following:
i) Selecting the rows from employees table.
ii) Counting number of employees working in 'research' department.
i) Selecting the rows from employees table.
ii) Counting number of employees working in 'research' department.
4 M
6(a)
What are Servlet? Briefly explain the application of servelet in web programming.
4 M
Write short notes on:
6(b)(i)
Session tracking
4 M
6(b)(ii)
Cookies
4 M
6(c)
Write a JAVA Servlet to read name from client page and say Hello to the name as response.
8 M
7(a)
What is JSP? Explain the different types of JSP tags.
6 M
7(b)
What is RMI? Describe the code snippet RMI at client side.
10 M
7(c)
Write the differences between JSP and Servlets.
4 M
Write short notes on:
8(a)
Session JAVA beans
5 M
8(b)
Entity JAVA beans
5 M
8(c)
JAR file
5 M
8(d)
Deployment descriptor for EJB 1.1
5 M
More question papers from JAVA and J2EE