-
-
-
-
-
-
-
-
-
What is true regarding the uses of servlets
A) A servlet can handle multiple requests concurrently, and can synchronize requests. This allows servlets to support systems such as on-line conferencing.B) Servlets can forward requests to other servers and servlets.C) Servlets can be used to balance load among several servers that mirror the same content, and to partition a single logical service over several servers, according to task type or organizational...
-
All statements in Java end with a _____________
A) ColonB) SemiColonC) HypenD) Dot
-
-
What is the difference between an Applet and an Application?
1. Applets can be embedded in HTML pages and downloaded over the Internet whereas Applications have no special support in HTML for embedding or downloading.2. Applets can only be executed inside a java compatible container, such as a browser or appletviewer whereas Applications are executed at command line by java.exe or jview.exe.3. Applets execute under strict security limitations that disallow certain...
-
Why are the methods of the Math class static
So they can be invoked as if they are a mathematical code library.
-
What's the difference between the == operator and the equals() method? What test does Object.equals() use, and why?
The == operator would be used, in an object sense, to see if the two objects were actually the same object. This operator looks at the actually memory address to see if it actually the same object. The equals() method is used to compare the values of the object respectively. This is used in a higher level to see if the object values are equal. Of course the the equals() method would be overloaded in...
-
Enum is a Keyword in Java, introduced from J2SE 5
A) TrueB) False
-
-
-
-
Compare SWING components to standard AWT.
Swing is an extension of, and not a replacement for the AWT. There is some overlap between AWT and Swing (for example a Swing JButton component might be viewed as an improved functional replacement for an AWT Button component.) One of the advantages of Swing components is that because the components are not rendered on the screen by the operating system, the look and feel of a component does not change...
-
What is the default thread at the time of starting the program?
A) main threadB) thread groupC) child threadD) thread pool
Java Interview Questions
Ans