By admin | September 1, 2004
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. [...]
By admin | September 1, 2004
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 [...]
By admin | September 1, 2004
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 |
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 [...]
By admin | April 25, 2004
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.
By admin | April 18, 2004
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.
Folks at JavaCamp.org have this large collection of Java interview questions with answers.
By admin | December 13, 2003
What is the protocol used by server and client ?
Can I modify an object in CORBA ?
What is the functionality stubs and skeletons ?
By admin | December 13, 2003
What is the difference between an Abstract class and Interface ?
What is user defined exception ?
What do you know about the garbage collector ?
By admin | December 7, 2003
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.
By admin | December 7, 2003
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.
By admin | December 7, 2003
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 [...]