opsssssss today again avoided deliberately logica interview..
my dead line is aug2011
common man its u r life...
god please give me the confidence to face it all
Thursday, June 16, 2011
Wednesday, June 15, 2011
java | Thread
Java Thread
Constructors in thread
Constructors in thread
- Thread();
- Thread(Runnable target);
- Thread(Runnable target, String name);
- Thread(String name)
- No, only the method can be Synchonized.
- Each object has only one lock
That That Boy That That Money
"that that boy that that money" is a very famous dialog in ma college days.
why this dialog??
it means each one have to spend their money for his expenditure.. mostly in college time guys wont get enough money to spend..so its a golden rule people have to spend their pocket money for there own.
mostly this rule wont applicable in bars... hahaha
why this dialog??
it means each one have to spend their money for his expenditure.. mostly in college time guys wont get enough money to spend..so its a golden rule people have to spend their pocket money for there own.
mostly this rule wont applicable in bars... hahaha
java interview questions
1. why java?
-: java is a fun and challenging language.
-: Object Oriented
-: Better Portability
-: Multi-Threading
-: Memory Management(Garbage Collection)
-: supports Web Based, Standalone, Distributed Application
-: superb API and
-: Open Source.
2. static vs. dynamic class loading?
Static Class Loading
-: Class are statically loaded with java's "new" operator
ex :
class car {
public static void main(String args[]) {
Car c = new Car();
}
}
Exception
NoClassDefFoundException
Dynamic Loading
- : its a technique for programmatic invoke the function of a class loader at run time.
Ex:
Class.forName("Class Name");// static method will return the class
class.newInstance();// Non Static method will create a new instance(object) of class
Exception
ClassNotFoundException
-: java is a fun and challenging language.
-: Object Oriented
-: Better Portability
-: Multi-Threading
-: Memory Management(Garbage Collection)
-: supports Web Based, Standalone, Distributed Application
-: superb API and
-: Open Source.
2. static vs. dynamic class loading?
Static Class Loading
-: Class are statically loaded with java's "new" operator
class car {
public static void main(String args[]) {
Car c = new Car();
}
}
Exception
NoClassDefFoundException
Dynamic Loading
- : its a technique for programmatic invoke the function of a class loader at run time.
Class.forName("Class Name");// static method will return the class
class.newInstance();// Non Static method will create a new instance(object) of class
Exception
ClassNotFoundException
Subscribe to:
Posts (Atom)