Invitation to Authors

Interested in writing a book for us?


Please fill this form and get a chance to get published plus $200 bonus online coupon.


PayPal Logo
Advanced JAVA Interview Questions You\'ll Most Likely Be Asked
Advanced JAVA Interview Questions You'll Most Likely Be Asked

ISBN: 9781466102996

Price:   $19.95

Quantity :        
Book Description:

Advanced JAVA Interview Questions You'll Most Likely Be Asked is a perfect companion to stand ahead above the rest in today’s competitive job market. Rather than going through comprehensive, textbook-sized reference guides, this book includes only the information required immediately for job search to build an IT career. This book puts the interviewee in the driver's seat and helps them steer their way to impress the interviewer.

 

Table of Contents

1. Object Serialization

2. Generics

3. CORBA

4. Threading

5. Servlet

6. Collections

7. Design Patterns

8. Data Structures

9. HR Questions

INDEX

 
Includes:

a) 250 Advanced JAVA Interview Questions, Answers and Proven Strategies for getting hired as an IT professional

b) Dozens of examples to respond to interview questions

c) 51 HR Questions with Answers and Proven strategies to give specific, impressive, answers that help nail the interviews

d) 2 Aptitude Tests download available on www.vibrantpublishers.com

 

Sample from the book
(Below Questions and Answers are randomly taken from different pages of the book)
 

239: How will you execute the precompiled queries?

Answer:

a) Using ‘prepared statement’ in the statement object

b) Precompiled queries can be executed with/without parameter using this statement

c) Syntax:

PreparedStatement my_preprdstmt1(String my_sql1) ;

d) Returns the object of the prepared statement and that are the precompiled sql queries

 

240: How will you call a function in the database?

Answer:

a) Using the ‘callable statement’ in the statement object

b) Returns the object for the ‘callablestatement’ and it is the SQL statement calling the procedure in database

c) Syntax:

CallableStatement my_calblstmt1(String my_sql2)

 

241: What are the methods provided by the statement interface to interact with database?

Answer:

a) execute: for sql queries in String object

b) executeQuery: for ‘select’ statement

c) executeUpdate: for creation or modification of tables

 

242: What is the purpose of ResultSet?

Answer:

When the Statements are executed, the contents of the table are accessed using ResultSet. It retrieves the data in sequential order and points to the data of the current row.

 

243: What is ResultSetMetaData?

Answer:

a) An interface made from the connection object

b) Contains the details(properties, types, etc) of the column in resultset

 

244: Can you declare aarraylist as below where generic datatype will differ both left and right side?

Answer:

List<Employee1> myFruitList1 = new ArrayList<String> ();

No. Compile time error will occur. Both should be of same type.

 

245: How would you know httpsession is removed (when time outs)?

Answer:

The class which needs to be stored in session objects should implement HttpSessionBindingListener interface (javax.servlet.http package) and override valueUnbound() and valueBound() methods. If the session is timed out or removed, the servlet container will invoke the valueUnbound() method on the class object. If this class object is stored into session for the next user valueBound() method will be invoked. HttpSessionBindingListener interfaced is used to track the session events on the particular object.

public void valueBound(HttpSessionBindingEventboundEvent)

public void valueUnbound(HttpSessionBindingEventunboundEvent)

 

246: How would you set and delete a cookie from the Servlet?

Answer:

Create a cookie and add it in response object. To delete it, set the cookie age as zero using setMaxAge() method and add it in response object.

a) To add a cookie:

Cookie cookie = new Cookie(“username”, “abc”);

response.addCookie(cookie);

b) To delete a cookie:

cookie.setValue(“username”, null);

cookie.setMaxAge(0);

response.addCookie(cookie);

 

Share

New Title Idea Submission

Got a fantastic New Title Idea but didn't find it in our catalogue?


Please fill this form and see your idea getting published. Also a chance to win $100 coupon.



Visitor Rating : 10/ 10 Based on 590 ratings.