Java
Java
Zerone - Stands for Zero (0) and One (1), the very basics of computing. So Binary Matters. Infact
only Binary Matters in our world of computers. The motive behind Zerone is to make job hunting an
easier process or atleast that is what we intent to. This is a one stop jobs group. The content in this
N
document is collected from various groups, sites & media. Copyright belongs to respective owners. If You
have any copyright issues, please mail to [email protected] with complete details.
"If You Have An Apple And I Have An Apple And We Exchange Apples Then You And I Will Still
O
Each Have One Apple. But If You Have An Idea And I Have An Idea And We Exchange These
Ideas, Then Each Of Us Will Have Two Ideas."
--- George Bernard Shaw (1856-1950)
R
E
o
o Why do we need a finalize () method when Garbage Collection is there?
o Difference between AWT and Swing components?
o Is there any heavy weight component in Swings?
o
o
o
N
Can the Swing application if you upload in net, be compatible with your browser?
What should you do get your browser compatible with swing components?
What are the methods in Applet?
O
o When is init (), start () called?
o When you navigate from one applet to another what are the methods called?
o What is the difference between Trusted and Untrusted Applet?
o What is Exception?
R
E
o What is meant by method overloading?
o What is meant by method overriding?
o What is singleton class?
o What is the difference between an array and a vector?
N
o What is meant by constructor?
o What is meant by casting?
o What is the difference between final, finally and finalize?
O
o What is meant by packages?
o What are all the packages?
o Name 2 classes you have used?
Name 2 classes that can store arbitrary number of objects?
R
o
o What is the difference between java.applet.* and java.applet.Applet?
o What is a default package?
o What is meant by a super class and how can you call a super class?
ZE
E
o How do you load an HTML page from an Applet ?
o What is meant by Applet Stub Interface ?
o What is meant by getCodeBase and getDocumentBase method ?
o How can you call an applet from a HTML file
N
o What is meant by Applet Flickering ?
o What is the use of parameter tag ?
o What is audio clip Interface and what are all the methods in it ?
O
o What is the difference between getAppletInfo and getParameterInfo ?
o How to communicate between applet and an applet ?
o What is meant by event handling ?
What are all the listeners in java and explain ?
R
o
o What is meant by an adapter class ?
o What are the types of mouse event listeners ?
o What are the types of methods in mouse listeners ?
ZE
E
o What is the diffrence between an Abstract class and Interface
o What is user defined exception ?
o What do you know about the garbate collector ?
o What is the difference between C++ & Java ?
N
o How do you communicate in between Applets & Servlets ?
o What is the use of Servlets ?
o In an HTML form I have a Button which makes us to open another page in 15
O
seconds. How will do you that ?
o What is the difference between Process and Threads ?
o How will you initialize an Applet ?
What is the order of method invocation in an Applet ?
R
o
o When is update method called ?
o How will you communicate between two Applets ?
o Have you ever used HashTable and Dictionary ?
ZE
E
o
o What is the exact difference in between Unicast and Multicast object? Where we
will use?
o How do you sing an Applet?
o
o
names, how will you do that one?
N
In a Container there are 5 components. I want to display the all the components
Why there are some null interface in java? What does it mean?
O
o Give me some null interfaces in JAVA?
o Tell me the latest versions in JAVA related areas?
o What is meant by class loader? How many types are there? When will we use
them?
R
E
o What is the difference between Checked and Un Checked Exception?
o Diff between Vectors and Arrays?
o Diff between Vectors and Array List?
o
o
o
What are Hash Map and Hash Map Table?
What is polymorphism?
N
What is diff between early and late binding?
Can u have polymorphism besides implementing an interface?
O
o
o Diff between multitasking and multithreading?
o What are the two ways of creating and instantiating a thread?
o Diff between interfaces and abstract classes?
R
o When would you use an interface and when would u use an abstract class?
o Can an abstract class have all non-abstract methods defined in it? When would u
use this? Ans. Yes this is when u don’t want the class to be instantiated by other
class.
ZE
JSP Interview
E
o What are the constraints for objects that can be sent as parameters or return
types in RMI? Should it be ‘final’, ‘abstract’ and should it implement ‘Serializable’
class?
o
o
o What is Cookie ? Why is Cookie used ?
o If my browser does not support Cookie,and my server sends a cookie instance
What will happen ?
o Why do u use Session Tracking in HttpServlet ?
o Can u use javaScript in Servlets ?
o What is the capacity the doGet can send to the server ?
o What are the type of protocols used in HttpServlet ?
o What is meant by a servlet ?
o What are the types of servlets ? Explain
o What is the different between a Servlet and a CGI?
o What is the difference between 2 types of Servlets ?
o What is the type of method for sending request from HTTP server ?
o What are the exceptions thrown by Servlets ? Why ?
o What is the life cycle of a servlet ?
o What is meant by cookies ?
o What is HTTP Session ?
o What is the difference between GET and POST methods ?
o How can you run a Servlet Program ?
E
o What are session variable in Servlets?
o What is client server computing?
o What is meant by Servelet? What are the parameters of the Service Method?
o
o
N
What is meant by Session? Tell me something about HTTPSession Class?
How do you invoke a Servelt? What is the difference in between DoPost and
doGet methods?
O
o What is the difference in between the HTTPServlet and Generic Servlet?
o Explain their methods? Tell me their parameter names also Have you used
threads in Servelet?
o How do you load an Image in a Servlet?
R