Variables declared within a method. That means the variable is not just initialized within the method, but also declared within the method. As local variables starts its life inside the method, it's also destroyed when the method has completed. Local variables are always on stack and not on heap.
SOURCE : www.referjava.com
Tuesday, January 23, 2007
What is Array?
Arrays are objects that store multiple variables of the same type or variables that are all subclasses of the same type.
SOURCE : www.referjava.com
SOURCE : www.referjava.com
What are Constructors?
A constructor is always invoked when a new object is created. Every class has atleast one constructor. Constructor must have the same name as the class name. Constructors don't have a return type. The default constructor is a no-arg constructor.
SOURCE : www.referjava.com
SOURCE : www.referjava.com
What is an Exception?
An abnormal condition that occurs during normal program flow.
There are two types of exception:
1. checked
2. unchecked.
SOURCE : www.referjava.com
There are two types of exception:
1. checked
2. unchecked.
SOURCE : www.referjava.com
Difference between String and StringBuffer ?
String objects are immutable and String reference variables are not.
StringBuffer objects are mutable.
SOURCE : www.referjava.com
StringBuffer objects are mutable.
SOURCE : www.referjava.com
What is a Thread?
A Thread is a line of execution. It is an instance of class java.lang.Thread.
There is one thread per call stack.
SOURCE : www.referjava.com
There is one thread per call stack.
SOURCE : www.referjava.com
Subscribe to:
Posts (Atom)