GeeCON Prague 2014*
The moose likes Web Component Certification (SCWCD/OCPJWCD) and the fly likes Doubt About setAttribute Method Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Certification » Web Component Certification (SCWCD/OCPJWCD)
Bookmark "Doubt About setAttribute Method" Watch "Doubt About setAttribute Method" New topic
Author

Doubt About setAttribute Method

Gowher Naik
Ranch Hand

Joined: Feb 07, 2005
Posts: 643


When i run above code it gives output as 111.
Now my doubt is that how i am able to set primitive int(myInt) value in setAttribute method at line 6 whenever it should be Object.
is method using autoboxing?

Thanks
Arvind Giri
Ranch Hand

Joined: Jun 26, 2005
Posts: 91
Yes! and you must be using jdk 1.5.

Am I right?


Regards<br /> <br />Arvind Giri<br />MCA,SCJP 1.4,SCWCD 1.4<br />Looking for SCDJWS
Gowher Naik
Ranch Hand

Joined: Feb 07, 2005
Posts: 643
Yes i am using jdk 1.5.
Swati Udas
Ranch Hand

Joined: Aug 18, 2004
Posts: 121
hey Arvind how did you figure out that its jdk 1.5 ?


SCJP 1.4 (90%)<br />SCWCD 1.4 (88%)
Karthikeyan Varadarajan
Ranch Hand

Joined: Jul 04, 2002
Posts: 98
auto boxing :roll: :roll: :roll:


~With Smile<br />VK
 
Consider Paul's rocket mass heater.
 
subject: Doubt About setAttribute Method