ji soi

Greenhorn
+ Follow
since Jun 14, 2005
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 ji soi

Hello,

What if we set max priority for Thread t1 will that print hello 5 times?

I just want to know How to set priority for t1 thread.I tried t1.SET_PRIORITY(10); shows error.

Plz correct me if iam wrong.
Shetal,

I did tried that it says "register key "software\javasoft\java runtime environment\current version"
Has 1.2 but 1.3 is required.

could not find java.dll
could not find java 2 runtime environment

I have jdk1.4 in my system then what is the problem?

Plz help
Is my system giving me error or is everyone have the same problem?

regards
Hi friends,

I did find lots of mock exams in ranch but few of them found to be not working or broken links.

In JExam i download the zip files but i dont know how to take the test.

In JDTcert when i try to run batch file it kept telling "should be in same direstory" I could find 2 more files they have told in read me file.

Robert & heller mock exam - page not found
4 mock exams -
Plz help me
class Super
{ int index = 5;
public void printVal()
{ System.out.println( "Super" );
}
}
class Sub extends Super
{ int index = 2;
public void printVal()
{ System.out.println( "Sub" );
}
}
public class runner
{ public static void main( String argv[] )
{ Super sup = new Sub();
System.out.print( sup.index + "," );
sup.printVal();
}
}

The output is 5 and sub.

I thought its 2 and sub.

Super class ref. sup -> sub class obj.

sup.printval() calling sub class method & printing "sub". Iam clear abt that.

sup.index() :

If its the same case
sup will call sub class index var. Don't they? .
Then why its 5 Not 2.

plz help me with this/

thanks
Thanks for ur clarification.

One more question

public First (String s) {

System.out.println(s);

}

}

public class Second extends First {

public static void main(String args []) {

new Second();

}

}

This program gives error " No constructor matching found in class first"

If i add empty constructor first()
it works.

I read in a book
Even if there is no constructor default const. will added by the compiler without no parameters.
then why is this error.

plz help me with this
System.out.println(Math.min(-0.0,+0.0) == Math.max(0.0,+0.0));
6: }

returns true.

can anyone explain me how ?
Which of the following statements is correct for a method which is overriding the following method:

plz help

public void add(int a) {�}

a. the overriding method must return void
b.the overriding method must return int
c. the overriding method can return whatever it likes

select the most appropriate answer.

The answer given is A

My answer A & B

Plz help me with this

regards
SUN CERTIFIED PROGRAMMER FOR THE JAVA 2 PLATFORM 1.4 (310-035)
June 6 2005

regards
hi,

I bought a exam voucher in sun site i thought they were going to give me
25% off,guess what they gave me an free voucher.

I called the prometric & make sure that's true. its valid till june 6 2006.

I have no idea why they did this.But i wrote an IBM - XML exam thr' prometric 2 yrs back. will that make me eligible for free voucher?

No idea,If u have answers i will be glad to know....

One more thing i live in US

Thanks
bye.