Welcome To Uday Satya Blog

Showing posts with label JSP. Show all posts
Showing posts with label JSP. Show all posts

AD Java Important SAQs




Unit –I
1.       Define servlet.
2.       Differences between servlet and applet
3.       Servlet container
4.       Differences between generic and http servlet
5.       What is httpservlet?
6.       servlet context
7.       Define cookies and how are they created.
8.       Ways of saving client state? How do you track users sessions
9.       Define Session
10.   Servlet runner utility
11.   Advantages of using servlet over CGI
12.   Define CGI
13.   Servlet interface
14.   Uses of servlet
15.   When a servlet accepts a call from client, it receives two objects. What are they?
16.   Can we use the constructor instead of init() to initialize a servlet?
17.   Differences between get and post.
18.   Define servlet mapping
19.   What are the classes and interfaces for servlets?
20.   Lifecycle of servlet
21.   Define servletconfig and its use.
22.   What is parseQueryString?
23.   Types of servlets. List methods in HttpServlets
24.   What are the advantages of servlets over all other server side technologies?
25.   Define single thread model.
26.   List all methods in cookie class.
27.   List various servers to deploy servlets.
28.   How does servlets handle multiple requests simultaneously?
29.   How are servlets and jsp pages related?
30.   Define servlet engine.
31.   Differences between servlet config and servlet context.
32.   Define generic servlet
Unit II
1.       Define jsp
2.       What is the life cycle of jsp?
3.       Define java beans
4.       Implicit objects in jsp
5.       List jsp scripting elements.
6.       Difference between custom tag and beans
7.       Define tag handler
8.       Comments in jsp and differences between them.
9.       Advantages of jsp
10.   Differences between jsp:include and include?
11.   Define custom tags? How do you create them and purpose?
12.   Define scriplet
13.   Define expression
14.   How to handle run-time exceptions in jsp?
15.   Define useBean
16.   How to include static files in jsp?
17.   How to implement thread-safe in jsp?
18.   Steps for jsp tag libraries.
19.   How can we implement or extends a class in jsp?
20.   Define jsp:forward
21.   What is jsp database connectivity?
22.   Difference between forward and sendRedirect?
23.   Define jspInit()

Unit III
25.   Define JNI
26.   List the native types in jni.
27.   What is jni interface pointer?
28.   Define dll
29.   How jni supports exceptions?
30.   Advantages and disadvantages of using jni.
31.   Define reflection
32.   What are the classes in java.lang.class?
Unit IV
33.   Define EJB
34.   Differences b/w ejb and java beans
35.   Diff. b/w session and entity beans
36.   Define session bean
37.   Define entity bean
38.   Define transaction
39.   Explain acid properties
40.   Define passivation and activation in ejb.
41.   Life cycle of session beans
42.   Kinds of EJB
43.   List the differences b/w ear,war and jar files
44.   Define stateful and stateless session beans, differences.
45.   Difference b/w server, container and connector
46.   Difference b/w cmp and bmp.
47.   What is deployment descriptor?
48.   Define call backs methods
49.   List various J2EE architectures
50.   Two-tier and N-tier architectures.
51.   Define pooling.
52.   What is a transaction attribute?
53.   What is ejb context?
54.   What is JNDI?
55.   What are the steps involved in developing stateless and stateful session beans
56.   Types of containers.
57.   Explain about EJB client Jar files.
Unit V
58.   Define policy tool
59.   Define digital signatures
60.   Keystore-define
61.   Jarsigner
62.   Benefits of jar
63.   Manifest file-define
64.   Define security manager.


How to Run JSP programs



Coming soon...

AD Java Programs



Click Here To Download All AD Java Programs



S No.
Topic
Pg.No
Servlets
1
Write a servlet program  to display Hello World
3
2
Write a servlet program  to display date and time
5
3
Write a servlet program  to concatenate strings
7
4
Write a servlet program  to demonstrate on post parameters
9
5
Write a servlet program  to display all arithmetic operations
11
6
Write a servlet program  to perform temperature conversion
13
7
Write a servlet program  to change foreground color for a text
15
8
Write a servlet program  to demonstrate database connectivity
17
9
Write a servlet program  to update details in a database
19
10
Write a servlet program  to demonstrate about Cookies
21
11
Write a servlet program  for session tracking
24
JSP
12.
Write a JSP to display Hello World for some number of times
26
13.
Write a JSP to convert miles to kilometers
27
14.
Write a JSP to display images when a particular image name is selected
28
15.
Write a JSP to demonstrate database connectivity
30
16.
Write a JSP to update details in a database
32
17.
Write a JSP to implement  jsp:forward
34
18.
Write a JSP to implement  jsp:include
36
19.
Write a JSP to implement  jsp:usebean
37
20.
Write a JSP to change background color of document
39
21
Write a JSP for check box
40
22
Write a JSP to implement  an Array
41
23
Write a JSP to implement  a Method
42
24
Write a JSP for custom tag
43
JNI
25
Write a JNI  program to display Hello World
45
26
Write a JNI  program to perform all arithmetic operations
46
27
Write a JNI  program to perform reverse a string
48
28
Write a JNI  program to concatenate strings
49
29
Write a JNI  program to perform sum of elements on array
50
30
Write a JNI  program for static  method call
51
31
Write a JNI  program to display static fields
52
32
Write a JNI  program to display instance method calls
53
33
Write a JNI  program to display instance fields
54
34
Write a JNI  program to throw exceptions
55
Reflection
35
Write a java program for getting classname
57
36
Write a java program for discovering class modifiers
58
37
Write a java program for finding super classes
59
38
Write a java program for examing interfaces
60
39
Write a java program for discovering class constructors
61
40
Write a java program for identifying  class fields
62
41
Write a java program for obtaining method information
63
42
Write a java program for creating objects of no argument constructor
64
43
Write a java program for objects constructor that have arguments
65
44
Write a java program for getting field values
67
45
Write a java program for setting field values
68
46
Write a java program for invoking methods
69
47
Write a java program for identifying arrays
70
48
Write a java program for retrieving component types
71
49
Write a java program for creating arrays
72
50
Write a java program for getting and setting element values
73
Security
51
Write a java program for setting a policy tool enabling applets to write
74
52
Write a java program that reads contents of file through applet
76
53
Write a java program for getting system properties
78
EJB
54
Write a EJB program for Hello World
79
55
Write a EJB program for temp conversion
81
56
Write a EJB program for arithmetic operations
83