manu sinha

Greenhorn
+ Follow
since Apr 29, 2005
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 manu sinha

Is there any utility to populate values from one Java object to another java object?
14 years ago
class A {

public void method1 (int a, int b) {
System.out.println("A's method");
}

}


class B extends A {

public void method1 (int a, float b) {
System.out.println("B's method");
}

public static void main (String args[]) {

int a = 2;
int b = 4;

B b1 = new B();

b1.method1(a, b);

}
}

This works fine on JDK 1.4.2 but if we try to run it on JDK 1.4.1, it gives compilation error telling "The method method1(int, float) is ambiguous for the type B"
14 years ago
If token is | and in a String two tokens are one after another like 12||john|16 , then after getting 12, i get john. I dont get null. Why?
14 years ago
thanx Jeroen

For your suggestion!!!
14 years ago
if i use any Object in the append method of string Buffer, toString() method on that object would be called?
14 years ago
public class Test{
public static void main(String args[]){
System.out.println(method());
}
public static int method(){
try{
throw new Exception();
}
catch(Exception e){



throw new Exception();



}
finally{



return 3;
}
}
}

This compiles fine and prints 3.Why?
14 years ago

great score..
well done!!!
15 years ago

Originally posted by Arun Kumaar:
Congrats Sinha, do let us know what was the book u used, the sites where u took u'r mock exams...

Thanks
Arun



Arun,
i refered only one book ..by Kathy Sierra
but i did take lots of mock test and http://www.danchisholm.net/july21/guide/index.html is a really good site for mock tests ..very conceptual..
best of luck
15 years ago
well done!!!
congatulation..
15 years ago
I cleared SCJP 1.4 with 98%. "danchisholm" was really great help.
looking forward to working in JAVA/J2EE.

What is the scope of JAVA in Embedded systems?
15 years ago
I am new to this Java world.I just cleared SCJP with 98%.
Really want to pursue career in Java but in my present company I am not getting opportunities.What to do?
15 years ago