Posted By:
Amanushya_T
Posted On:
Monday, September 28, 2009 07:17 PM
If a DTO kind of object is received as Object obj instead of specific class type, then the time taken to receive is very high.
(1)
private static void receiverMethod(Object obj){
/*print time here*/
do something
}
(2)
private static void receiverMethod(specificClass sc) {
do something
}
(1) takes 10 times more time than (2) depending on object size.
any clues?