Win a copy of TDD for a Shopping Website LiveProject this week in the Testing forum!

Ishaan Mohan

Ranch Hand
+ Follow
since Jan 20, 2001
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 Ishaan Mohan

hi reetinder,
well all the scjp related sites do not offer a download, but you have several mock exams to download for.. also some of the mocks come with useful info also
Mohan.
Hi,
I too need some good info on inner classes..
some good notes may help the cause..,
Mohan
Hi ,
I certainly think so, giving an scjp is almost a must now, i think so bcoz due to the current slump it is a very hard situation to stay ahead of others and being a sun certified certainly helps..
think so.
Mohan.
yes good effort from Anil bach , it was a nice idea to put all things needed for scjp and give it as a download, so that it saves time and efforts of people preparing for scjp.
thanks to him on my behalf too..
Ishaan
Hi,
The priority is the same as the priority of the thread that creates it...
A thread inherits the priority of its parent thread.
Thanks John.
21 years ago
hi,
when you calles x.display() execution will transfer to class s1 display() function and here value of s is "s1".
class Test {
Test() { k = 2; }
int j = 1;
int i = j;
int k;
}
Hi,
First variables initiallization take place and after that excecution of constructor.
1. j=1, i=1 and k=0(default)
2. After constructor execution k=2
Hi,
I have to give my first telephone interview(technical).
The interview will be technical, they will ask me some questions about Metro code warrior, c, C++.
The job is for Palm OS programmer.
Can you guys give me some TIPS and some sample questions?
Thanks
Ishaan
21 years ago
Yes Steivie is right and also the given answer(e). As its on JVM that which thread get execution first. You can not predict output just running once.
Congrats !! Pooja, good score.
Good Luck for Future.
Ishaan
21 years ago
Hi,
The answer is b.
for Math.max() and Math.min -0.0 and +0.0 are different
for equality -0.0 is equal to +0.0
the output you get is -0.0, 0.0 ,true
Hi Kaffo,
The code given by you will not compile becoz of
Integer i = 100;
Integer i1 = 100
as Integer is a wrapper class , not a primitive so first make correction like :
class EqualsTest{
public static void main(String arg[]){
String a = "Test";
String a1 = "Test";
Integer i = new Integer(100);
Integer i1 = new Integer(100);
System.out.println("a.equals(a1) " + a.equals(a1));
System.out.println("i.equals(i1) " + i.equals(i1));
System.out.println(a == a1);
System.out.println(i == i1);

}
}
The output for this is :
true
true
true
false
Both Wrapper class and string class overrride equals() method thats why first two will give true.
As strings are created in string pool not on heap thats why third is true.
String str = "abc;"
Sring str1 = "";
str1+str2 : Constructs a new string on heap(Not string Pool)
(str1+str2).intern() : Put this string in a string Pool not on heap.
System.out.println(str == (str1 + str2).intern());
As they are pointed to same string in string pool therefore it prints true.
If you remove intern() it will print false.
83%
Congrats!1 Tushar.
Happy Colorful holi to you also
21 years ago