Help coderanch get a
new server
by contributing to the fundraiser

prakash sodhani

Greenhorn
+ Follow
since Nov 04, 2004
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
In last 30 days
0
Forums and Threads

Recent posts by prakash sodhani

Hi All,

I want to know how much preparation time shuld be good enough, assuming I am a beginner in this field, but have CS background.

I cleared SCJP recently.

Thanks
Prakash
Hi All,

I cleard SCJP few days back. As it seems, SCJD is the next step.

I really don't have any idea abt how to go for this?? What i know is...u will be given an assignment to complete and u have to finish is within a year.

Can someone tell me the complexity of these assignments...and a person who has passed SCJP but does not have a lot of programming experience in recent times...how will it relate to him??

I will appreciate any details abt this and how to start??? Any sample assignments??

Thanks
Prakash
Hi All,

Need a little advice....

I am "Software QA/Test Enginner" and I want to remain in this field only. I gave SCJP yesterday and cleared with 86%. This I did, assuming that a tester must have a knowledge of atleast one OO language.

I don't want to go in development field. Please suggest me something if I should do/must do in the Java and OO field looking from a tester/QA enginner perspective, apart from SCJP.

Thanks
Prakash
Hi All,

I cleared SCJP with 86% today. I am satisfied as i prepared for arnd 4 weeks or so with K&B book.

Lost points in threads.

Thanks
Prakash
19 years ago
Is there anyway to know how much % a person got in the exam?? As far as i know...certificate only shows pass...

Thanks
Prakash
Hi,

I have a question about the one of the question from Marcus Green mock test 2.

What will happen when you attempt to compile and run this code?

public class Mod
{
public static void main(String argv[]){}
public static native void amethod();
}

1) Error at compilation: native method cannot be static
2) Error at compilation native method must return value
3) Compilation but error at run time unless you have made code containing native amethod available
4) Compilation and execution without error


As far as I know..none of these answers are correct as looking at method "amethod" in the above code, it should be declared abstract (ends with () and hence class shuld be declared abstract.

The answer given is 4.

Please let me know your views.

Thanks
-Prakash
Thanks Barry. This article seems to be what I was looking for.

-Prakash
Hi All,

I am kind of confused with casting.

Let say if we have

float f=10;

When i executed this it works fine. My question is...if 10 is interpreted as double (64 bits)...whats the reason above assignment passed.

Same is the case with following:

long w=10;
float m=w;

When is the implicit casting done???

Thanks
Prakash
If I remember correctly, in K&B book..it says "If equals methond return false..there is no restrction on hashcode method. Then how, in this case, we can be certain that hashcode will always be different."

Kinda confused....

Thanks for the help
Prakash
Hi all,

In the following code:

class G {
public static void main (String[] args) {
Long l1 = new Long("1"), l2 = new Long("1");
int h1 = l1.hashCode(), h2 = l2.hashCode();
StringBuffer s1 = new StringBuffer("1");
StringBuffer s2 = new StringBuffer("1");
int h3 = s1.hashCode(), h4 = s2.hashCode();
System.out.print((l1.equals(l2) & (h1==h2)) + ",");
System.out.print(s1.equals(s2) | (h3==h4));
}}

The answer as given is :true/false.

I know first "true" is ok. But for the other part, is it not that h3 and h4 may or may not return the same value and hence the expression

(s1.equals(s2) | (h3==h4));

can't be determined. I mean answer can be false or true because of | operator. But the answer key says it (h3==h4) will always be false.

As per me answer should be "None of the above"(one of the options)

Please let me know if I am wrong.

Thanks
Prakash
Hi All,

I am preapring for this certification for past 1 month. As I see there are too many mock exams available. My target is to clear the exam with arnd 75-80% score. I am in a different field that development and so not aiming too high.

Which are the 3-5 tests, which a person shuld take and if he scores around 80-90%..he shuld consider himself OK for the test.

Please let me know.

Thanks
Prakash