KyaPoocha.com

Huge Collection of Interview Questions


Archive for January, 2007

Where the CardLayout is used ? 

CardLayout manages two or more components that share the same display space. It lets you use one container (usually a panel) to display one out of many possible... Read more »

Why do you Canvas ? 

The Canvas class of java.awt is used to provide custom drawing and event handling. It provides a general GUI component for drawing images and text on the screen.... Read more »

What is JFC ? 

Java Foundation Classes include: Standard AWT 1.1 Accessibility interface Lightweight components: which are user interface components that do not subclass... Read more »

How do you communicate in between Applets & Servlets ? 

We can use the java.net.URLConnection and java.net.URL classes to open a standard HTTP connection and “tunnel” to the web server. The server then... Read more »

How will you communicate between two Applets ? 

The simplest method is to use the static variables of a shared class since there’s only one instance of the class and hence only one copy of its static... Read more »

When is update method called ? 

Whenever a screen needs redrawing (e.g., upon creation, resizing, validating) the update method is called. By default, the update method clears the screen and... Read more »

What is the order of method invocation in an Applet ? 

public void init() : Initialization method called once by browser. public void start() : Method called after init() and contains code to start processing. If... Read more »

Whats the difference between notify() and notifyAll()? 

notify() is used to unblock one waiting thread; notifyAll() is used to unblock all of them. Using notify() is preferable (for efficiency) when only one blocked... Read more »

What is meant by time slicing? 

Its a task scheduling method. With time slicing, or “Round-Robin Systems”, several processes are executed sequentially to completion. Each executable... Read more »

How does thread synchronization occurs inside a monitor ? 

The JVM uses locks in conjunction with monitors. A monitor is basically a guardian in that it watches over a sequence of code, making sure only one thread at a time... Read more »

How is the MVC design pattern used in Struts framework? 

Tn the MVC design pattern, application flow is mediated by a central Controller. The Controller delegates requests to an appropriate handler. The handlers are tied... Read more »

What is Model 1? 

Using JSP technology alone to develop Web page. Such term is used in the earlier JSP specification. Model 1 architecture is suitable for applications that have... Read more »

What is Model 2? 

Using JSP and Servlet together to develop Web page. Model 2 applications are easier to maintain and extend, because views do not refer to each other directly.  Read more »

What is difference between J2EE 1.3 and J2EE 1.4? 

J2EE 1.4 is an enhancement version of J2EE 1.3. It is the most complete Web services platform ever. J2EE 1.4 includes: *Java API for XML-Based RPC (JAX-RPC 1.1) *SOAP... Read more »

How many development roles are involved in J2EE application? 

There are at least 5 roles involved: 1.Enterprise Bean Developer *Writes and compiles the source code *Specifies the deployment descriptor *Bundles the .class files... Read more »

Page 3 of 9«12345»...Last »