ALLInterview.com :: Home Page KalAajKal.com
 Advertise your Business Here     
Browse  |   Placement Papers  |   Company  |   Code Snippets  |   Certifications  |   Visa Questions
Post Question  |   Post Answer  |   My Panel  |   Search  |   Articles  |   Topics  |   ERRORS new
   Refer this Site  Refer This Site to Your Friends  Site Map  Bookmark this Site  Set it as your HomePage  Contact Us     Login  |  Sign Up                      
info       Did you received any Funny E-Mails from your Friends and like to share with rest of our friends? Yeah!! you can post that stuff   HERE
Google
 
Categories >> Software >> Java-Related
 
  J2ME (99)  Java-Related-AllOther (21)
 


 

Back to Questions Page
 
Question
Which method will get invoked first in a stand alone 
application?
Rank Answer Posted By  
 Question Submitted By :: Guest
I also faced this Question!!   © ALL Interview .com
Answer
The first method that is invoked in a stand alone Java app
is the 'main' method which must have the following signature:

public static void main( String[] args )
 
0
Ranganathkini
 
 
Question
What is the life cycle of an Applet ?
Rank Answer Posted By  
 Question Submitted By :: Guest
I also faced this Question!!   © ALL Interview .com
Answer
init()
start()
paint()
stop()
destroy()
 
0
Ravikiran
 
 
Question
What is the immediate superclass of the Dialog class?
Rank Answer Posted By  
 Question Submitted By :: Guest
I also faced this Question!!   © ALL Interview .com
Answer
java.awt.Window
 
0
Ranganathkini
 
 
 
Question
What is the difference between the >> and >>> operators?
Rank Answer Posted By  
 Question Submitted By :: Guest
I also faced this Question!!   © ALL Interview .com
Answer
The >> operator carries the sign bit when shifting right.
The >>> zero-fills bits that have been shifted out.
 
0
Shweta
 
 
Question
What is the difference between static and non-static 
variables?
Rank Answer Posted By  
 Question Submitted By :: Guest
I also faced this Question!!   © ALL Interview .com
Answer
Static variables:
     There is only one copy of static variable and even 
when the class is instatiated, the value remains the same.

Non-static variables:
    Every time the class is instatiated, the objest has 
their own copy of these variables.
 
0
Sathya
 
 
Answer
static variables are class variables and the values remains 
same fr the whole class
nonstatic variables are of two kinds
global variables:are the variables which defines variables 
which can be accesible over the whole class
local variables:the scope of local variables is with tin 
the method only
 
0
Ravikiran
 
 
Question
What is the frontend and backedn in Java?
Rank Answer Posted By  
 Question Submitted By :: Guest
This Interview Question Asked @   TCS
I also faced this Question!!   © ALL Interview .com
Answer
front end means which u going to have look and feel like 
jsp,swings,awt pakage 
 back end menas which is going to implement the business 
logic for you
 
0
Narasimha
 
 
Answer
front end is html or UI elements
back end is the database or persistent storage
 
0
Ravikiran
 
 
Question
What is yielding and sleeping? how they different?
Rank Answer Posted By  
 Question Submitted By :: Guest
I also faced this Question!!   © ALL Interview .com
Answer
When a thread yields, its execution is paused and loses
ownership of the monitor lock giving other waiting threads a
chance to run.

When a thread sleeps, its execution is paused for the
specified duration during such an idle period, the thread
continues to retain the ownership of the monitor lock.
 
0
Ranganathkini
 
 
Answer
yield() method will suspend all the same priority thread 
which is running and gives chance to next thread to run 
which is of the same priority
sleep() method will make the thread to sleep for a 
particular period of time which is specified in the 
argument list
 
0
Ravikiran
 
 
Question
What is the difference between throw and throws?
Rank Answer Posted By  
 Question Submitted By :: Guest
I also faced this Question!!   © ALL Interview .com
Answer
The 'throw' statement initiates an exception to be thrown
where as the 'throws' clause declares that the method is
expected to throw 1 or more checked execptions.
 
0
Ranganathkini
 
 
Answer
'throw' exception is thrown manually and 'throws' exception 
is thrown predefindly.
 
0
Sushma
 
 
Answer
throw will declare an exception 
throws will throw the exception to the calling method
 
0
Ravikiran
 
 
Question
Difference between prefix and postfix forms of the 
++operator?
Rank Answer Posted By  
 Question Submitted By :: Guest
I also faced this Question!!   © ALL Interview .com
Answer
The prefix ++ operator first increments the value by one and
then returns the new value.

The postfix ++ operator first returns the value and then
increments it.
 
0
Ranganathkini
 
 
Answer
prefix will increment first and assigns to the variable
postfix will assing the value to the variable and then 
increments
 
0
Ravikiran
 
 
Question
Difference between the paint() and repaint() methods?
Rank Answer Posted By  
 Question Submitted By :: Guest
I also faced this Question!!   © ALL Interview .com
Answer
The paint method causes the component and and all its parts
to be painted on the Graphics context tat is passed in as
parameter.

If the component is a light-weight component, then a call to
the component's repaint method which invokes the paint
method as soon as possible. If the component is not a
light-weight component, then calling repaint is the same as
calling the update method.
 
0
Ranganathkini
 
 
Question
Difference between the String and StringBuffer classes?
Rank Answer Posted By  
 Question Submitted By :: Guest
I also faced this Question!!   © ALL Interview .com
Answer
String class is immutable i.e oncle created the value 
cannot chage.

Stringbuffer class is mutable.The value can change.
 
0
Sathya
 
 
Answer
yes, String is a immutable that means once the string 
object is created it cannot be changed.

String Buffer: it is a mutable,this object is changed if we 
make any modifications.
 
0
Anitha
 
 
Question
In which JDK version event-delegation model is introduced?
Rank Answer Posted By  
 Question Submitted By :: Guest
I also faced this Question!!   © ALL Interview .com
Answer
JDK 1.1
 
0
Ranganathkini
 
 
 
Back to Questions Page
 
 
 
 
 
   
Copyright Policy  |  Terms of Service  |  Help  |  Site Map 1  |  Articles  |  Site Map  |   Site Map  |  Contact Us interview questions urls   External Links 
   
Copyright © 2007  ALLInterview.com.  All Rights Reserved.

ALLInterview.com   ::  Forum9.com   ::  KalAajKal.com