This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
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


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
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
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Doubt About setAttribute Method
 
Similar Threads
EL doubt
Tomcat 4.11 doubt
mock example doubt
JSP doubt?
doubt