Category Archives: Java

Java applet interview questions

Thanks to Sachin Rastogi for sending this set in.

What is an Applet? Should applets have constructors?
- Applets are small programs transferred through Internet, automatically installed and run as part of web-browser. Applets implements functionality of a client. Applet is a dynamic and interactive program that runs inside a Web page displayed by a Java-capable browser. [...]

Posted in Java | 3 Comments

Servlet interview questions

What is a servlet?
Servlets are modules that extend request/response-oriented servers,such as Java-enabled web servers. For example, a servlet might be responsible for taking data in an HTML order-entry form and applying the business logic used to update a company’s order database. Servlets are to servers what applets are to browsers. Unlike applets, however, servlets have [...]

Posted in Java | 2 Comments

JDBC interview questions and answers

Thanks to Sachin Rastogi for sending in Java database interview questions.

What are the steps involved in establishing a JDBC connection? This action involves two steps: loading the JDBC driver and making the connection.
How can you load the drivers?
Loading the driver or drivers you want to use is very simple and involves just one line of [...]

Also posted in Database | 17 Comments

Java interview questions

What are synchronized methods and synchronized statements? Synchronized methods are methods that are used to control access to an object. For example, a thread only executes a synchronized method after it has acquired the lock for the method’s object or class. Synchronized statements are similar to synchronized methods. A synchronized statement can only be executed [...]

Posted in Java | 5 Comments

JSP interview questions and answers

What is JSP? Describe its concept. JSP is a technology that combines HTML/XML markup languages and elements of Java programming Language to return dynamic content to the Web client, It is normally used to handle Presentation logic of a web application, although it may have business logic.

Posted in Java | 4 Comments

Java interview questions

What is a class? A class is a blueprint, or prototype, that defines the variables and the methods common to all objects of a certain kind.

Posted in Java | Leave a comment

A hundred and more good Java interview questions

Folks at JavaCamp.org have this large collection of Java interview questions with answers.

Posted in Java | 22 Comments

Java networking and algoritms interview questions

What is the protocol used by server and client ?
Can I modify an object in CORBA ?
What is the functionality stubs and skeletons ?

Posted in Java | 11 Comments

Large collection of Java interview questions

What is the difference between an Abstract class and Interface ?
What is user defined exception ?
What do you know about the garbage collector ?

Posted in Java | 6 Comments

Java Swing interview questions

1) Can a class be it’s own event handler? Explain how to implement this.
Answer: Sure. an example could be a class that extends Jbutton and implements ActionListener. In the actionPerformed method, put the code to perform when the button is pressed.

Posted in Java | 8 Comments

Java interview questions

Q1: What are the advantages of OOPL?
Ans: Object oriented programming languages directly represent the real life objects. The features of OOPL as inhreitance, polymorphism, encapsulation makes it powerful.

Posted in Java | 2 Comments

Java and Perl Web programming interview questions

Q1: How can we store the information returned from querying the database? and if it is too big, how does it affect the performance? In Java the return information will be stored in the ResultSet object. Yes, if the ResultSet is getting big, it will slow down the process and the performance as well. We [...]

Posted in Java | 1 Comment