milan chovatia

Greenhorn
+ Follow
since Aug 06, 2013
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 milan chovatia

what has been changed from scwcd to ocewcd ??
and which are finest book or materials that i can go through???
please reply it would be very useful for me
do i have to wait untill i receive certification kit for ocpjp or i can give exam right after passing ocpjp???
i am confused please help me...
t. sharma said i would need 2 photo ids.......one government issued id-card would not be enough???
do i need some kind of ID means passport or election card for exam because i dont have one....please reply
Are you really stone sure???
because one of my friend having course preparation in oracle university that provides online lectures and Swings,networking was included in their syllabus
so i am confused
do ocpjp6 contain swing,networking and gui application cocept???
I am writing exacly same file as luke wrote.....one with package example
i am getting output "not equal"....dont know what's going on i checked it 100 times....
have you guys run this code/???
8 years ago
Guys i am not getting they are equal in any condition....
Integer i=10;
Integer j=10;
m nt get i=j

show me the code of 2-3 line in which they ate equal...this code lines are not working at all
any help would be appreciated because i am getting too confuse...
8 years ago
public class Wrap
{
public static void main(String args[])
{ int j=10;
Integer i3=new Integer(10);
Integer i4=new Integer(10);
if(i4 == i3)
{
System.out.println("they are equal");
}
if(i4!=i3)
{
System.out.println("not equal");
}
}
}

see this is what i have done......
i am getting output : not equal

shouldnt i get they are equal??....if not then how i get equal....and i am compiling it fine...
8 years ago
Integer i3=10;
Integer i4=10;
if(i3 == i4)
{
System.out.println("they are same);
}
else
{
System.out.println("not same");

output: they are same

this is code part from book scjp6 by k&b and in that it says "in order to save memory instances of wrapper objects are always == when their primitive values are same."
but when i am running code i am getting output "not same".....
please someone can explain it....
8 years ago