Receiving as Object
0 posts in topic
Flat View  Flat View

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.


private static void receiverMethod(Object obj){

/*print time here*/

do something



private static void receiverMethod(specificClass sc) {

do something
(1) takes 10 times more time than (2) depending on object size.
any clues?

About | Sitemap | Contact