Hebert Taype

Greenhorn
+ Follow
since Apr 13, 2008
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Hebert Taype

Hi everybody, i just started my preparation for taking the SCWCD exam, i have a doubt therefore i need some help

I have declared a context-param (declared in the Deployment Descriptor off-course) like this:
<web-app id="WebApp_ID" ...
><context-param>
<param-name>email</param-name>
<param-value>hebertway@gmail.com</param-value>
</context-param>
...
</web-app>


I was wonfering why it's not possible to get this parameter "email" using this sentence <%=pageContext.getAttribute("email",PageContext.APPLICATION_SCOPE)%> in a normal jsp page.

Thanks in advance
Hi i found this a little wierd, please someone could tell me what happen in this code source?

Integer i1 = 1000;
Integer i2 = 1000;
if(i1 != i2) System.out.println("Different Integer objects");

String d1="abc";
String d2="abc";
if (d1==d2){
System.out.println("Same String objects");
}

The result is
"Different Integer objects" and "Same String objects"

The problem is that i know d1 and d2 only reference to one object "abc" and this object is in the pool, but what happen with i1 and i2, shouldn't they have the same behavior as d1 and d2 it means creating only one Integer object 1000 at the pool?...Why do d1 and d2 create 2 different Integer objects?.

Thanks in advance!!!