All Matches
Solution Library
Expert Answer
Textbooks
Search Textbook questions, tutors and Books
Oops, something went wrong!
Change your search query and then try again
Toggle navigation
FREE Trial
S
Books
FREE
Tutors
Study Help
Expert Questions
Accounting
General Management
Mathematics
Finance
Organizational Behaviour
Law
Physics
Operating System
Management Leadership
Sociology
Programming
Marketing
Database
Computer Network
Economics
Textbooks Solutions
Accounting
Managerial Accounting
Management Leadership
Cost Accounting
Statistics
Business Law
Corporate Finance
Finance
Economics
Auditing
Ask a Question
Search
Search
Sign In
Register
study help
computer science
advanced java programming
Questions and Answers of
Advanced Java Programming
What is the task of the javax.servlet.Servlet interface?
What are the two objects that a servlet receives when it accepts a call from a client?
What information does ServletRequest allow access to?
What type of constraints can ServletResponse interface set on the client?
Describe the life cycle of a servlet.
Describe how an HTTP Servlet handles its client requests.
Differentiate between the single-threaded and multi-threaded servlet model.
What are the differences between servlets and applets?
Mention some uses of Servlets.
How can you invoke other web resources such as servlets /JSPs?
How can you include other Resources in the Response?
What information does the ServletResponse interface give to the servlet methods for replying to the client?
What do you understand by servlet mapping?
What are the advantages of Cookies over URL rewriting?
What is session hijacking?
What is the full form of JSP ?(a) Java Servlet Pages(b) Java Server Pages(c) Java Small Pages(d) Java Special Pages
Which of the following statements is true?(a) JSP and servlets are completely different technologies.(b) Servlets are built on JSP technology and all servlets are ultimately converted to JSP
What is the advantage of using RequestDispatcher over sendRedirect() to forward a request to another resource?(a) The RequestDispatcher does not use the reflection API.(b) sendRedirect() is no
In which one of the following cases is the scriptlet better suited?(a) Code that handles cookies(b) Code that deals with logic that relates to database access(c) Code that deals with session
Which of the following handles a request first in a page-centric approach?(a) A JSP page(b) A session manager(c) A servlet(d) A JavaBean
Which of the following can be included using the JSP include action?(a) Servlet(b) Another JSP(c) Plain text file(d) All of the above
Which of the following is used to read parameters from a JSP page?(a) action(b) action(c) request.getParameter() method(d) action
Which of the following is not a method of JSP’s servlet ?(a) _jspService()(b) _jspDestroy()(c) jspService()(d) _jspInit()
Which of the following JSP actions is used to include a file in another file? (a) (b) (c) (d)
What is a JSP page translated into?(a) CGI(b) Servlet(c) Applet(d) JavaBean
Which of the following is not true regarding cookies?(a) Cookie class has a two-argument constructor.(b) The response object is used to add a cookie.(c) The request object is used to get the
Which of the following scopes does the implicit object exception have?(a) Page(b) Request(c) Session(d) Application
Which of the following tags is used to override the JSP file’s initialization method?(a) (b) (c) (d)
Which of the following scopes is not valid with respect to JavaBean in JSP?(a) Request(b) Response(c) Session(d) Application
Which of the following statements is true regarding HttpServletResponse.sendRedirect()?(a) Server itself redirects the current request.(b) sendRedirect() executes on the client.(c) Server sends a
Which of the following tags is used for scriptlets?(a) (b) (c) (d)
Which of the following attributes of the page directive is used to indicate that the current page is an error page?(a) errorPage(b) isErrorPage(c) anErrorPage(d) pageError
Which of the following tags is used for expressions?(a) (b) (c) (d)
Which of the following is not a JSP engine?(a) Tomcat(b) Java Web Server(c) WebLogic(d) Apache James
Which of the following is not a JSP implicit object?(a) Request(b) Response(c) In(d) Out
Write some advantages of JSP over servlet.
What is the key difference between HttpServletResponse.sendRedirect() and?
What is the benefit of using JavaBeans to separate business logic from presentation markup within the JSP environment?
What is the function of a JSP engine?
Compare and contrast between JSP and servlet.
Briefly describe the structure of a JSP page.
Explain with examples the page directive.
What is the purpose of include directive in a JSP page?
What is the difference between a declaration and a scriplet?
What do you mean by the scope of JSP objects?
Explain with examples the different types of scopes.
What do request and response implicit object represent?
Write the usage of session and application implicit objects.
What do JSP action tags do? Write the names of some JSP action tags.
Describe briefly how to create custom tags in JSP.
What are the different types of custom tags?Explain with examples.
Write the necessary properties that Java Bean components must have.
What are the different session tracking technologies available in JSP?
Describe how hidden fields can be used to track sessions. What are the problems of using hidden fields?
Write the method of passing data between two JSP pages.
Which packages contain the JDBC classes?(a) java.db.sql and javax.db.sql(b) java.jdbc and javax.jdbc(c) java.db and javax.db(d) java.sql and javax.sql
Which of the following drivers converts JDBC calls into network protocol, to communicate with the database management system directly?(a) Type 1 driver(b) Type 2 driver(c) Type 3 driver(d) Type 4
Which of the following types of objects is used to execute parameterized queries?(a) ParameterizedStatement(b) Statement(c) PreparedStatement(d) All of the above
Which of the following methods on the Statement object is used to execute DML statements?(a) ExecuteInsert()(b) Execute()(c) ExecuteQuery()(d) ExecuteDML()
Which type of driver makes a JDBC–ODBC bridge?(a) Type 1 driver(b) Type 2 driver(c) Type 3 driver(d) Type 4 driver
What is the meaning of ResultSet.TYPE_ SCROLL_INSENSITIVE(a) This means that the ResultSet is insensitive to scrolling.(b) This means that the ResultSet is sensitive to scrolling, but insensitive
Which of the following SQL keywords is used to read data from a database table?(a) SELECT(b) CHOOSE(c) READ(d) EXTRACT
Which of the following statement objects is used to call a stored procedure in JDBC?(a) Statement(b) PreparedStatement(c) CallableStatement(d) ProcedureStatement
Which of the following objects is used to obtain the DatabaseMetaData object?(a) Driver(b) DriverManager(c) Connection(d) ResultSet
Which of the following methods is used to call a stored procedure in the database?(a) Execute()(b) ExecuteProcedure()(c) Call()(d) Run()
What will be the effect if we call deleteRow() method on a ResultSet object?(a) The row pointed to by the cursor is deleted from the ResultSet, but not from the database.(b) The row pointed to by
If you want to work with a ResultSet, which of these methods will not work on PreparedStatement?(a) Execute()(b) ExecuteQuery()(c) ExecuteUpdate()(d) All of the above
Which of the following characters is used as a placeholder in CallableStatement?(a) $(b) @(c) ?(d) #
Which one of the following will not get the data from the first column of ResultSet rs, returned from executing the SQL statement: “SELECT login, password FROM
Which of the following interfaces is used to control transactions?(a) Statement(b) Connection(c) ResultSet(d) DatabaseMetaData
Which one of the following represents the correct order?(a) INSERT, INTO, SELECT, FROM, WHERE(b) SELECT, FROM, WHERE, INSERT, INTO(c) INTO, INSERT, VALUES, FROM, WHERE(d) INSERT, INTO, WHERE,
Which of the following is not a benefit of using JDBC?(a) JDBC programs are tightly integrated with the server operating system.(b) Systems built with JDBC are relatively easy to move to different
In which of the following layers of the JDBC architecture does the JDBC–ODBC bridge reside?(a) Database layer(b) Client program layer(c) Both client program and database layers(d) JDBC layer
Which database application model would an enterprise-wide solution most likely adopt?(a) The monolithic model(b) The two-tier model(c) The three-tier model(d) The n-tier model
Which code segment could execute the stored procedure “calculate()” located in a database server?(a) Statement stmt = connection. createStatement();
Write the differences between Type 2 and Type 3 drivers.
How do you get the ResultSet of a stored procedure?
What is the purpose of the setAutoCommit( )method on the Connection object?
How do you move the cursor in scrollable resultsets?
Describe the procedure we use to retrieve data from the ResultSet.
What are the three statements in JDBC and the differences between them?
How do you update a ResultSet programmatically?
Why do we use PreparedStatement instead of Statement?
What is stored procedure? How do you create a stored procedure?
How do you insert and delete a row programmatically?
What are batch updates? How are they useful?
What are the four types of JDBC drivers?
How can you use PreparedStatement ?
Explain the different types of JDBC drivers with their working principle.
What are two-tier and three-tier JDBC architecture?
Write the basic steps to be followed to work with JDBC.
Write the different types of SQL statements that can be created in JDBC with their functionality.
What does execute() method do? When should we use it?
Briefly describe how you would make a set of transactions atomic.
What are the advantages of pre-compiled statements over simple statements?
Describe briefly how do you call stored procedures in JDBC.
What do you mean by database metadata? How do you get them?
What are scrollable and updatable result sets?
What do you mean by result set metadata? How do you get them?
Which of the following is true about hibernate?(a) Hibernate is a framework.(b) Hibernate is an Object-Relational Mapping (ORM) library for the Java language.(c) Hibernate provides a mapping for
Showing 400 - 500
of 1226
1
2
3
4
5
6
7
8
9
10
11
12
13