vivek rai

Ranch Hand
+ Follow
since May 08, 2000
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 vivek rai

thanks Vivek, Vidya, Deekasha, Udayan..
( congrats to u too Vivek!! so two Vivek's passed the exam on the same day!)
Udayan, I'm thinking of going for archi exam as well.. will continue to drop in this forum..
cheers,
vivek
thanks a lot ajith... have registered at serverside.com and started the download!!! well.. need some rest and drinks, miles to go.. still.. i suppose..
thanks satyen, trust me the real exam was much cooler that most mocks.. considering i used to get 80% types in most mocks!..
cheers,
vivek the 'SCJP',
thanks, Ajith, Hema, Aparanji ..
anytips on where to go from here? I have been doing a bit of comms/network java programming at job .. but I have got no exposure of all this 'in things' - javabeans/ejb/servelets/corba .. any poiters on what to do and where to start... some suggestions on good books/sites wud be most welcome.
cheers,
vivek
Hi all.. I have just passed the SCJP with 97%. thanks to all of u and marcus green, i joined javaranch some 3-4 months back, in early may, as a novice java programmer..
http://www.javaranch.com/ubb/Forum24/HTML/001424.html
well thats pretty much what i did.. except that i studied exam cram as well alongwith RHE, and various notes by all the ppl.
thougth the exam was much easier than most mocks, coz there were less ambiguities (there was one, but I got that one right).. and u get more alert, thus reducing (if not completely eliminating) the silly mistakes
i spent most of the time during preperation of lang fundas stuff and much less on API cramming, restricted myself to the Objectives and never bothered too much about getting questions out of that wrong in the mock exams. think it turned out to be a good idea in the end.
cheers,
vivek
i took it on 14th as well.
something which made things easier than the other exams was that u r now told the number of correct answers in the cases when more than one choices are correct ( like chose 2 ).
I thought it kind of drained me.. (as did the jaworsky exam.).. its so hard to remain attentive for such a long time.
there were a few questions on inner classes... think the coverage of Collections is a bit deeper than earlier.
cheers,
vivek

[This message has been edited by vivek rai (edited August 16, 2000).]
hey steve, cheer up mate!!,
i have got 4 years of so called programming experience, but tell u something, i wud have bought a round of drinks for everybody in the local pub if i managed to pass the exam...
if u beleive what barry boone writes (somewhere), many a java language instructors have failed this exam..
so keep drinking, and be confident... u'd get there..
cheers,
vivek
congrats istrite,
guess u got the all the notorious questions(MediaTracker/Socket/ GridBag.. and so many fill in the blanks!!) .. and yet u managed such a great score.. thats really commendable!
vivek
23 years ago
well shiny, do u think many certified ppl wud have 4 hours to spare to give a beta exam, which is expected to have 2-3 variants of the many questions (wud have bored me), and give them (in 3 months time) a certification they already have? why?
also most SCJP's are likely to have moved on in life. they wont even constitute the typical examinee's sample for sun.. ( they might know it all too better, or might have forgotten it all ).
cheers,
vivek
Hi Praveen,
IMO, if u realy are too used to all the mock exam questions, (well - u shudnt be getting them wrong then!?)
1. just go thru the list of all the exam objectives, and check out (ask yourself) if u are really comfortable with all those.
2. check out some certification notes ( like carls notes / marcus etc ) .. are there many things which surprize u ?. or r u very comfortable with all the stuff.?
that cud help u checking your readiness if u are not sure bout the mock exam results.
dont intend to discourage u, if i were u, i probably wudnt feel comfortable going to the exam with 55-75% score in the mock exams. esp if that is with many familiar questions. i wud try to sort out the sections in which i was having most errors.
try to analyze the 45-25% of the questions u seem to miss. are they from the topics within the objectives? are they from a particular topic? maybe u need to study those sections from some book again.. and also the RHE chapter.
( some mocks have questions from 1.1 exam objectives like applet/html etc, dont bother if u are missing all that stuff ).. some other exams go into a bit too much of API cramming stuff..
RHE is normally considered the bible for SCJP, but it excludes GridBagLayout and some IO stuff, which is frequently asked about in many mock exams. These are in objectives as well, and if u have based your preperation solely on RHE, and these are the kinda questions u seem to be missing, try to read these from some other source as well.. marcus/some other book - exam cram etc. if u have read RHE thrice, i wud imagine that u shud be very strong in all other areas.
give a couple of more mock exams after all this, and dont answer something bcoz u remember the answer, try to reason out the answer.. see and understand y it is the answer.
cheers,
vivek
congrats junaid, great score!!!
cheers,
vivek
congrats nikita, great score!
from what i have seen from some other posts on breakup of questions by topic, seems that there are usually 15-20 questions on API's and 40-45 on language fundamentals.
cud u give us some idea on the rough breakup by topics?
cheers,
vivek
java.util.Arrays is NOT the class which defines the java language arrays. There is no predefined class in the JDK for them, a class is created for an array at the runtime, depending on the type of members ( getClass() for an array of ints would print [I.. its superclass wud be Object )
an arrays class is the same as the following class:
class A implements Cloneable, java.io.Serializable {
public final int length = X;
public Object clone()
{
try
{
return super.clone();
}
catch (CloneNotSupportedException e)
{
throw new InternalError(e.getMessage()); }
}
}
---
so it has to implement clone() method in order to implement the Clonable interface, although it eventually calls Object's clone() .
cheers,
Vivek
JLS says - the member interfaces are always implicitly static so they are never considered to be inner classes.
i think for all purposes, we can treat interfaces defined inside a class to be equivalent to static inner classes. the following code illustrates the point, we dont get the errors for interfaces, but get them for inner class.
i have the earlier version of JDK, so can someone try this and see if this is giving the same error as the inner interface ( extending a static class defined inside)
--

---
Just have the feeling that bcoz its not exactly inner, and being a static member, is equivalent to a top level one, it might be confusing the compiler.
cheers,
vivek

[This message has been edited by maha anna (edited July 25, 2000).]
Hi Marcela,
took it from JLS ( 2nd edition section 15.19 ). It says:
"If the promoted type of the left-hand operand is int, only the five lowest-order bits of the right-hand operand are used as the
shift distance. It is as if the right-hand operand were subjected to a bitwise logical AND operator & with the mask value 0x1f. The shift distance actually used is therefore always in the range 0 to 31, inclusive.
If the promoted type of the left-hand operand is long, then only the six lowest-order bits of the right-hand operand are used as
the shift distance. It is as if the right-hand operand were subjected to a bitwise logical AND operator & with the mask value 0x3f. The shift distance actually used is therefore always in the range 0 to 63, inclusive."
cheers,
vivek
(a slight digression from the actual topic there .. )
srini,
char c = 65 ; will compile even though 65 is an int literal bcoz its a constant and compiler knows at compile time that it wud fit.
if u change it to
int i = 65;
char c = i;
it wudnt compile.
anyway, i dont think these things are coming into play in the current threads discussion, as usual binary numeric promotion is NOT done in shift operators, its just promoted to the type of the lsft hand operand, and bits of the right hand operand are masked accordingly.
cheers,
vivek