About SCJP!
Hey Bros,
I have a good programming background(C#.Net and VB.Net)
Frankly, I'm kindda bored of Microsoft stuff, So I'm Planning on SCJD.
Of Course, we all know that you should have a SCJP first, So I have two ways to accomplish that :
1-Self-Learning: depending On my previous experience in programming, and most at my ex in C#, I can go through Java and learn what makes me qualified for a SCJP exam or,
2-Training Center: I go to one of those, take the essential training of SCJP,
and spend a lot of money(Which is Something that I don't prefer!)
Plus that these kind of courses contain some materials that became basics to me ..
Here's the Java Diploma tracks from the training center I went:
-Java Programming Language basics
-Advanced Object Oriented Programming
-Building Java Applications
-Developing Graphical User Interfaces
-Advanced Java Programming
So The questions are :
-Which Way to Choose?
and If I Choose the self-learning way..
-When Can I tell that I'm Qualified for popping into a SCJP certification exam ??
Thanks In Advance!
There is no need for an overpriced training center to do the SCJP. What you need is to get a good text, look for something by by Kathy Sierra and Bert Bates that is appropriate for the cert you want to do. Do all the exercises and any Mock Exams in the book.
Go to www.javaranch.com (K&B's website) and another Java Forum. they have extensive coverage of all certification topics, with a forum per exam and lots of activity. they can recommend plenty of further mock tests.
You are ready when you can get a nearly perfect score on the mock tests.
And there is absolutely no need to pay money to some scumbag organization that claims a 150% pass rate to get mock tests.
Similar Messages
-
I'm going to take the SCJP 2 exam,
anybody please tell me how to prepare this.Posting in this forum after asking for previous test questions in the Java Programming forum yesterday? At least you didn't ask for test questions again!
JavaRanch is a good place to start off. But don't schedule your test before having prepared for it -- it isn't a test you can just cram for. Buy a good book or two, once you learn the material then go play with the practice exams. -
Infomation about SCJP 1.5
hello friends
I am interested to take the SCJP.
I already preapared for SCJP1.4.
Shall i go for 1.5 . How many questions are added in the exam which are purely from jdk 1.5?
What are the topics needed for these.
Thanks
abhijitlook for this
http://www.sun.com/training/certification/java/index.xml
hope that' s useful
Good Luck -
Hi,
I want to take SCJP exam, can any one know the processes to be done for that in india perticularly in bangalore, and also the references for the exam.ANOTHER RESURRECTION !!!
Must be the end times !!!!!!!
.;1bW@MMMMMM@W9ti.
i9MMMMMMMMMMMMMMMMMMMMMMM@o.
.zMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMM7
tMMMMMMMMMWt, .i2@MMMMMMMMM;
QMMMMMMM6. iWMMMMMMMU
$MMMMMM2 .WMMMMMMA
UMMMMMM: XMMMMMMY
,MMMMMM, cMMMMMM
2MMMMMc ZMMMMM;
@MMMM# .MMMMMZ
MMMMMo #MMMMB
MMMMMv i$MMM#v t@MMM0. 8MMMMQ
WMMMMv MMMMMMMMM. cMMMMMMMM@ 8MMMMt
iMMMMI MMMMMMMMMMM .MMMMMMMMMM$ @MMMM
MMMMM MMMMMMMMMMM, 1MMMMMMMMMMM MMMMM
7MMMM. MMMMMMMMMMM MMMMMMMMMMB vMMMM.
MMMM@ #MMMMMMMM .MMMMMMMMQ MMMM@
MMMM; 1W#Wo. .6B#0Y IMMMM
;MMMM .MMMM.
6MMMM MMMMc
0MMMM MMMM1
EMMMM MMMM1
ZMMMM MMM .MM@ MMMMc
vMMMM MMMn #MMM MMMM,
MMMMi .MMM .MMM. CMMMM
MMMM@ MMMM MMMM MMMMM
1MMMM MMM@ MMMM .MMMMi
MMMMM oMMMM ,MMMMX MMMMM
cMMMM7 0MMMMb .$MMMMU 8MMMM.
@MMMM. zMMMMM#i cMMMMMM7 cMMMMZ
MMMMM. .MMMMMMMMWti.. ..;o#MMMMMMMM cMMMM@
MMMMMv 7MMMMMMMMMMMMMMMMMMMMMMMMMMi IMMMM@
MMMMMQ ,#MMMMMMMMMMMMMMMMMMMME. @MMMMB
WMMMMM: .XWMMMMMMMMMMMM0c YMMMMM1
;MMMMM@ ,MMMMMM.
#MMMMM#. :MMMMMMz
.MMMMMMMc 1MMMMMMW
.MMMMMMM@Y .1MMMMMMMQ
0MMMMMMMM@zi .;6MMMMMMMMM1
:#MMMMMMMMMMMMMMM@@MMMMMMMMMMMMMMM6.
t@MMMMMMMMMMMMMMMMMMMMMMMMQ;
.;UW@MMMMMMMMMM@01: -
Is it necessary to have an scjp certification to be a java programmer
hi i have been programming in java for quite some time now , i have heard a lot about SCJP .
Right now i am in college doing my grad. and java is not a part of our curriculum
i am quite comfortable with java and want to make my career as a java programmer.
i just want to know one thing from some professionals on the forum that is it very necessary to have an SCJP Certification if i want to apply in some big companies as a java programmer since i wont be having any other certifications that i have done java .
please tell me if it would be good for me if i do an SCJP course
Regardshi i have been programming in java for quite some
time now , i have heard a lot about SCJP .
In that case you should already know the answer to your stated question...
i just want to know one thing from some professionals
on the forum that is it very necessary to have an
SCJP Certification if i want to apply in some big
companies as a java programmer since i wont be having
any other certifications that i have done java .
Can't hurt, probably won't help either.
please tell me if it would be good for me if i do an
SCJP course
Formal training never hurts. -
SCJP 5.0 vs SCJP 5.0 Upgrade
Hi folks
(CX-310-055) vS (CX-310-056)
Is it possible to take SCJP 5.0 upgrade certification by skipping SCJP 5.0?
I�d like to know update in the new version.
Do we have the material & online support for the new version?
Advance Thanx
Regards
LordHi folks
Still I am not clear, I am new to java planning to do SCJP examination and would like to know about SCJP 310-056 upgrade examination.. , Since it was SCJP 310-055 regular.
The term �REGULAR� & �UPGRADE� what made different?
SCJP 310-056 upgrade is some kind of functionality upgrade? Or examination patter changes ? or what?
Thanks
Lord -
Information regarding SCJP ??
Hello guys i am unable to find information about scjp 310-055 exam. Like
what is the length(time) of exam,
what i am allowed to take along to the examination center,
once awnsered/skipped can i come back to the marked questions and redo my awnser
what is pass percentage
and how many questions in total will be asked
can i carry pen and paper if need to do some coding calculations
and any tips before taking the exam please.b.m.kraju
once awnsered/skipped can i come back to the markedquestions and redo my awnser
can i carry pen and paper if need to do some codingcalculations
i think these still need to be awnseredno, both are explained at the appropriate time (meaning before you actually start the exam) ;)
But here's the short:
yes, you can go back.
no, you're not allowed to bring anything into the exam room. You will be provided with a pen or pencil and a supply of paper, which you will NOT be allowed to take out of the exam room. -
Using SCJP 1.2 guide book for the 1.4 exam?
i dont have access to a SCJP 1.4 guide book. can i use a 1.2 version instead? will it work?
(i guess the important point is that the objectives that are common in both e.g. threads, contain the same topics and theory or not)
thank youalso that will be very kind of you to tell me if if there is any free online book about SCJP 1.4
thank you -
SCJP 6 BOOKS AVAILABLE ????
Hi EveryOne!
Whether Scjp 6 Books are Available In Market ??.What About Scjp 6 Dumps ?? Where I Can Found Or get the Both ???.
Did Any One Completed SCJP 6 Exam ????
Regards
VijayYes. SCJP 6 Books are available in market
Better you go and get it from your nearby BookShop.
Dont Use dumps.. Then there is no value even if you get 100% marks in SCJP by using Dumps.
Intend is not to pass the Exam. To Improve your Knowledge.
Sorry , i meant anything wrong.
Edited by: universalhero on Jan 11, 2009 3:48 AM
Edited by: universalhero on Jan 11, 2009 3:51 AM -
SCJP 5.0 A question about hashcode() and equals()
Here's an exercise from a book.
Given:
class SortOf {
String name;
int bal;
String code;
short rate;
public int hashCode() {
return (code.length()*bal);
public boolean equals(Object o) {
//insert code here
Which of the following will fulfill the equals() and hashCode() contracts for this
class? (Choose all that apply)
A return ((SortOf)o).bal == this.bal;
B return ((SortOf)o).code.length() == this.code.length();
C return ((SortOf)o).code.length()*((SortOf)o).bal == this.code.length()*this.bal;
D return ((SortOf)o).code.length()*((SortOf)o).bal*((SortOf)o).rate ==
this.code.length()*this.bal*this.rate;
C is a correct answer but D is also a correct answer according to the book writer,
and I don't understand why.
Normally, the rule is that if two objects are equals (according to the equals
method)) then they must return the same hashcode. If we have two objects A and B;
and A.bal == 2, A.code.length()==3, A.rate == 4 and B.bal == 4, B.code.length() ==
3 and B.rate == 2. A and B are equals according with the D answer but they do not
return the same hashcode.
May someone help me make it clear?Generally ,the instance members decides the equals( ) & hashCode( ) contract . Here the code.length , bal fields are generating the hashCode.
So it is appropriate to override the equals( ) method in such a way that , thonly those two fields wil decid the equality of the objects .
Thanks,
laksh. -
SCJP 5.0 About Exceptions
Here's an exercise from a book?
How is IllegalArgumentException used? (Choose all correct options.)
A. It is thrown by the JVM when a method is called with incompatible argument types.
B. It is thrown by the JVM to indicate arithmetic overflow.
C. It is thrown by certain methods of certain core Java classes to indicate that preconditions have been violated.
D. It should be used by programmers to indicate that preconditions of public methods have been violated.
E. It should be used by programmers to indicate that preconditions of nonpublic methods have been violated.
The correct answers are C and D. But in my opinion, A and E seems to be correct too. Is a RuntimeException the same as "the JVM" throw the exception? Can someone give its opinion?A is not a correct option because the JVM does not throw this exception for incompatible arguments. It will throw some subclass of java.lang.Error
The option E sounds incorrect to me because preconditions for non-public methods should not be generating Runtime exceptions, in my opinion. Those should be handled by the methods using them. -
SCJP prep help -- bitwise bad boys?
Hi,
I'm studying for SCJP so obviously one of the details I have to brush up on are the oft-unused bitwise operators: & | ^ ~
I'm wondering if there are any mental techniques to using these in your head. Instead of literally writing out the number in binary, performing the comparison, and then re-converting back to decimal.
Similar to how in grade school we learn that you can take a shortcut of multiplying two long numbers:
34563
x 24
and do these steps:
3 * 4 = 12, carry the 1
6 * 4 = 24, add the 1 is 25, carry the 2
5 * 4 = 20, add the 2 is 22, carry the 2
4 * 4 = 16, add the 2 is 18, carry the 1
3 * 4 = 12, add the 1, it all equals 138252
next line
then pad a zero on the right
3 * 2 = 6
6 * 2 = 12, carry the 1
5 * 2 = 10, add the 1 is 11, carry the 1
4 * 2 = 8, add the 1 is 9
3 * 2 = 6, it all equals 691260
altogether the answer is 691260 + 138252 = 829512
In other words, while it's not feasible to add 34563 to itself 24 times (23 actually), there is a trick to figuring it out. Is there something like that for bitwise operators?
Thanks.Thanks -- I finally collated some good tips a few days after I posted that here, with some help from local LUGgers. I'll post them here for the archives:
Would you mind posting a summary of the helpful tips, tricks, and
shortcuts sent your way? I'm rather interested in understanding this
stuff a little better myself.Sure. In fact, they say you really know something well when you can
explain it to someone else, and this gives anyone a chance to correct me
if I'm wrong in what I think I know. Here's some of the things I
learned, combined with what I had already learned from my book (please
do correct me if I'm wrong):
1. The unary bitwise NOT operator (~) has a shortcut, but one which
only works when two's complement is in effect. On systems in which
one's complement is in effect, it doesn't work. The shortcut is that
any number n has a bitwise NOT of -n - 1. So
~5 == -6
~-12 == 11
Because I'm fortunate enough to be working in Java where you're writing
for only one platform (the JVM, which has a spec), I don't have to worry
about exceptions to this for the test.
2. Other than the NOT operator, the bitwise operators are binary
operators, working on pairs of numbers. The bitwise AND operator
returns a 1 for each pair of bits that are both 1.
So in the case of
11001 & 10011
the result is 10001 (because only the first and last digits are both 1).
The bitwise OR (|) operator returns a 1 for situations in which either
pair of bits has a 1.
So in the case of
11001 | 10011
the result is 11011 (because the only place in both numbers where there
is no 1 is the third digit).
The bitwise XOR (^) operator returns a 1 for situations in which either
pair of bits, but not both, has a 1 (hence the name "exclusive OR", or XOR).
So in the case of
11001 ^ 10011
the result is 01010 (because in the first, third, and fifth digits,
either both numbers are 0 or 1).
The short circuit operators AND (&&) and OR (||) work just like their
regular counterparts except they stop evaluating once they "know" the
result (AND stops evaluating if the first operand is false, and OR stops
evaluating if the first operand is true).
3. So my original question, "does anyone know any mental shortcuts for
working with bitwise operators", should have been phrased as "does
anyone know any mental shortcuts for converting decimal numbers to
binary". The answer, which a couple of people provided, was that it's
much easier to convert to binary (even if only in your head) when you
are working from octal or hexadecimal, and that it's not too difficult
to convert from decimal to octal or hexadecimal.
Several ways were suggested:
a) Convert the number to hex, then do the comparison a byte at a time in
your head using a table:
& 0x01 0x02 ... 0xff
0x01 0x01 0x00 0x01
0x02 0x00 0x02 0x02
0xff 0x01 0x02 0xff
b) Convert the number to octal using a simple recursive divide-by-eight
solution:
divide the number by eight, store the remainder as the low bit depth
(rightmost number), then repeat the process with the quotient.
123 / 8 = 15 remainder 3 -- 3 is rightmost digit (3)
15 / 8 = 1 remainder 7 -- 7 is next to 3 (73)
we don't divide 1 by 8 -- 1 is next to 7 (173)
so 123 in octal is 0173
From octal it's much easier to see the binary form of the number:
1 7 3
001 111 011
And from binary it's much easier to do a bitwise calculation.
c) Another way to convert to binary is to simply keep dividing by two
and assigning 1 if there's a remainder and 0 if there isn't, then read
in reverse to get the binary number:
<quote>
If a number is even, dividing it by 2 will have 0 remainder.
If it is odd, dividing it by 2 will have a 1 remainder. Dividing
by 2 is so easy that I, at least, can just write down a column of
successive halvings, along with 1s and 0s for their oddness.
459 1
229 1
114 0
57 1
28 0
14 0
7 1
3 1
1 1
Reading from bottom to top, we again get 111001011. In this
presentation you stop when the quotient is 1, since you've already
written down the remainder that you'd get by dividing 1 by 2 when
you write down the oddness. Remainder when dividing by 2 is easier
than quotient.
</quote>
d) A final useful tip mentioned: as long as x is not zero,
x & -x
will always evaluate to a power of two, which means only one bit is set
in the number (the least significant of the bits of x that were 1s).
4. And everyone agreed that it's foolish to do these kinds of
computations in your head when there's no good reason not to use a
computer to do it. My personal preference is to use Python since the
interactive interpreter works just like a calculator, though any
scripting language should probably be able to handle the calculations.
(Here's a quick sample:)
|$ python
|Python 2.2.2 (#1, Dec 31 2002, 12:24:34)
|[GCC 3.2 20020927 (prerelease)] on cygwin
|Type "help", "copyright", "credits" or "license" for more information.
|>>> 12 & 14
|12
|>>> 12 | 14
|14
|>>> 12 ^ 14
|2
|>>> ~12
|-13
|>>> myResult = 0x5422CA66 & 458
|>>> myResult
|66
|>>> hex(myResult)
|'0x42'
(hey, it wouldn't be a LUG without a little evangelism, would it? :)
Much thanks to Bill, Jason, Kevin, and YATArchivist.
Erik -
Does SCWCD ask question about J2SE
J2SE are covered by SCJP. does SCWCD exam ask question about J2SE such as collection,assersion...
Thanksof course you do need to have in depth knowledge about JSE as such knowledge will be assumed (after all, you did have to pass SCJP to be able to enlist for SCWCD).
So the subjects may turn up in questions, but they won't be the things you're tested on. -
Doubt about the concept of HashSet and LinkedHashSet
I read one of the SCJP 6 exam book, when talking about Set, it gives one definition:
When using HashSet or LinkedHashSet, the objects you add to them must override hashCode(). If they don't override hashCode(), the default Object. hashCode() method will allow multiple objects that you might consider "meaningfully equal" to be added to your "no duplicates allowed" set.
What I am getting confused is that IF the objects we add to them must override hashCode(), we must override equals() method also! Isn't it?
Edited by: roamer on 2009?10?23? ??10:29jverd wrote:
endasil wrote:
When using HashSet or LinkedHashSet, the objects you add to them must override hashCode(). If they don't override hashCode(), the default Object. hashCode() method will allow multiple objects that you might consider "meaningfully equal" to be added to your "no duplicates allowed" set.This really is completely wrong. Duplicates being added to your set has nothing to do with not overriding hashCode, and everything to do with not overriding equals. No, if you override equals but not hashCode, you can get dupes. That is, two items that your equals method says are equal can make it into the Set.Sorry, to clarify, what I meant by that was that to avoid duplicates of meaningfully equal objects, you must override equals, and overriding hashCode is just a consequent of overriding equals (to maintain the equal objects have equal hashcodes invariant). Overriding hashCode alone will not, and cannot, prevent meaningfully equal duplicates if you don't first define meaningfully equal by overriding equals.
In summary, it's wrong because
1) You don't have to override hashCode() if you don't override equals (or rather, don't deviate from the default "two objects are equal if and only if they are the same object").
2) If you have any other definition of meaningfully equal that you want enforced in a Set, you must override equals to correspond to that definition.
3) If you override equals, you must override hashCode by the contract of hashCode and equals.
That's why I was saying that the statement was completely wrong. It's taking a backwards approach.
By not overriding equals, you're saying that no two separate instances can be meaningfully equal, so the default hashCode is fine. Yeah, I kind of figured for the statement to be meaningful, it is assumed that you have already overridden equals. Otherwise what's the point of even mentioning something two objects "meaningfully equal"?All this talk of "meaningfully equal" makes me think the opposite: that they haven't overridden equals, or haven't discussed it yet. Otherwise you could just say that the objects are equal, or are equal according to equals().
I would question the authority of the source that said that.I would quesiton the source's ability to express himself clearly. :-)Yeah, maybe that's all it is. In that case, I suggest (to the OP) reading [Effective Java, Chapter 3|http://java.sun.com/developer/Books/effectivejava/Chapter3.pdf]. Best source I've seen for beginners to make sense of all this.
Edited by: endasil on 26-Oct-2009 1:11 PM -
What are the advantages of SCJP??
I know SCJP is a certificate acknoledging your Java programming level.
But, is there any realistic advantage??
Secondly, I see there are slightly different versions of SCJP, for eg, 1.2, or 1.4 platform. What makes them different??
Apreciate any responseI know SCJP is a certificate acknoledging your Java
programming level.Kind of. It says nothing about the quality of the code you'll write.
But, is there any realistic advantage??Depends. It seems that in some parts of the world, the recruiters value it. In other parts of the world, it's just a sheet of paper.
Secondly, I see there are slightly different versions
of SCJP, for eg, 1.2, or 1.4 platform. What makes
them different??<sarcasm>
Hm. There's a SCJP for Java 1.3, one for 1.4, one for Java 1.5... I wonder where's the difference, too.
</sarcasm>
Different Java versions, different features, different tests. As simple as that.
Maybe you are looking for
-
I'll keep this short and sweet. Hopefully some light can be shed on my scenario and a solution. I have a Server 2008 R2 with Sharepoint 2010 and Office Web Apps setup. The installations went off without a hitch, and I setup a Site Collection with sev
-
How to hide fields in product master data
Hi gurus, could you please tell if it's possible to hide fields in Product maintenance (tr. COMMPR01). It's necessary to hide some fields in a standard Set type. Thanks in advance, Sunny.
-
Hello! I try to create a payment terms with three disounts. It s about a 90 days end of month on the tenth with 1 different discount for each of the 3 month. Example : Baseline date is 10 M-4 0,6 % disount if customers pay before the 30th M-3 of the
-
Power button not working on TV -DVD
Green power light stays lit, but power button does not work on TV with DVD player, model number 23HLV87. Set was purchased in 2008. Also, beeping sound soon after power comes on.
-
Received GPF error upon closing Adobe Acrobat 8
Hello, does anyone know if there is a fix for this? (1) In windows XP, Install Adobe acrobat 8 professional. (2) Launch adobe, Click Help-->Check for Updates... to update to 8.1.2 or the latest. (3) Launch adobe, again, select Edit-->Preferences, sel