Darryl Burke wrote:
fadi aboona wrote:The TS and ATS labels are not in their proper position below Password!
Huh? They are below Password.
I think you need to tell us where you thought that code should place them.
If you're referring to the vertical positioning, look into setting appropriate RowConstraints
harsh sahay wrote:
My doubt with this code is why auto-boxing with Long d=4 is failing as compared to Byte,Short,and Integer where it is a success? I don't understand why we need to explicitly specify the value as 4L for it to work. Since 4 is an int type shouldn't it be boxed automatically to Long? Please clarify.
Henry Wong wrote:
fadi aboona wrote:why oracle still beta testing us when they had the beta exam open? and why they keep changing exam topics?
This is true for many testing systems -- even college entrance exams, which have been around for many decades, have beta test questions. After all, how would you introduce new questions into the test?
Norbert Muench wrote:
Ash Gill wrote:I would like to add that from my experience of trying numerous examples, ".class" files are searched in the current directory by default if we are not using the "-classpath" option. however, if we use the "classpath" option then the current directory is not searched by default for .class files.
That is correct. See How classes are found.
This can be easily verified by running the following code. If no class path is specified on the command line and none is set in the CLASSPATH env variable, then this will output "Class Path: ."
fadi aboona wrote:What i don't understand is how come we didn't use the "." in the javac command but java command wouldn't work without it?
Simple: The javac command wasn't looking for a GetJar.class file, it was creating it. The java command on the other hand needs to find the GetJar.class and it will do so by searching the class path.
Gaurav Sagar wrote:All the answers are wrong. It should be:-
javac -classpath MyJar.jar GetJar.java
java -classpath MyJar.jar;. GetJar
Digen Mahara wrote:Hi everyone,
We all know jdk 1.7 has arrived will the SCJP exam be called as SCJP 6 or SCJP 7.
Ankit Garg wrote:I guess you need to know here what the signature of main method should be (public static void and taking String as parameter) and maybe how to create an executable jar file. Under which section is this objective listed?
Sriram Athreyah wrote:Hello dudes and dudettes of JavaRanch...
I passed my OCPJP 1z0-851 exam today with a good percentage(86 %).
It had 60 questions and time given to complete was 150 minutes(much more than required).
For people who are worried about how their exam will be, Please DON'T !!
I didn't know anything about java a month ago (I promise!!), If you're really sincere in getting your certification, do the following....
1. Yes, the standard book- SCJP by KATHY SIERRA (The Best...) := Please go through the 2 minute drills, exam watch, and the self tests !!
2. If you can't figure out why a given answer is wrong in a practice question, PLEASE RUN THE PROGRAM YOURSELF and see how the error or Exception or Compilation fail or output occurs.
3. PLEASE NEVER EVER EVER EVER take a mock test on the day of your exam....
4. In the exam, always go through all the options atleast once !
5. (optional, my favorite) NEVER review answers which you figured out the first time... only review marked questions (ie the answers you couldn't figure out the first time)
And now i'm a happy man(I'm only 22!) entering 2012 as a Java Professional