neil walker

Greenhorn
+ Follow
since Jan 24, 2008
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 neil walker

Hello,
Subject says it all really. This is based on Java EE6 which is now out of date and superceded by Java EE 7 and the direction of Oracle/Java EE is JSF not 'legacy' jsp's.

However, Oracle don't seem to be very quick with updating the exams and there is no JSF exam. I'm asking because I have a choice of exams to do and from a bad bunch this seems ok ;)


Neil.
Hello,
A colleague (I passed my OCJP 6 last year) has just completed OCA java 7 programmer 1 exam and passed with a score of 68% with a pass mark of 61%

Three weeks ago he failed his exam with a score of 68% (the same) with a pass mark of 77%

Searching I see in 2012 the pass mark is was 75%

Can anyone tell me how one month Oracle can fail somebody and take their money and get them depressed and then the next month congratulate them on passing with exactly the same score, with the same abilities, a lot of the same questions and others of exactly the same level of difficulty?

Is it the case that Oracle are massaging the pass mark based on how many people pass and fail in order to ensure their revenue stream remains the same? I can't think of any other reason and really highlights how much of a mockery Oracle certification is.

Eager for your discussion.

Neil.
Hello,
So, having passed my OCJP I'm thinking of the EE certifications now.

I'm following this useful Java 6 EE guide: http://docs.oracle.com/javaee/6/tutorial/doc/giqvh.html and in there it states that JSF is the standard for creating your presentation layer and that JSP is there "for compatibility with earlier releases, but recommends the use of Facelets as the display technology in new applications.”

How come when I view the java ee 6 web component developer exam:
http://education.oracle.com/pls/web_prod-plq-dad/db_pages.getpage?page_id=5001&get_params=p_exam_id:1Z0-899&p_org_id=&lang=

It’s all about JSP and nothing on JSF. Any reason why? and is there any point in doing the exam and learning old technology when really I want to focus on JSF, etc. Obviously JSP's are still important but I'd rather have a EE 6 exam focus on what I'll actually be doing?

I guess from the answers supplied you've just got to assume that the question isn't testing your ability to know locales but is purely testing your ability to know how and when rounding occurs which will be the same (you'd hope) in most locales that do use full stops.

As for your point about lack of locale, I've just read that chapter again and as typical with authors of an American stance the assumption is you are American too as there's pleny of mention of results without mentioning locale.
Here's a list of loads of mock exams, mostly free:

http://www.certpal.com/
https://coderanch.com/t/546876/sr/certification/links-OCJP-mock-test-preparation

Don't worry about it too much, do more mock exams and for everything you learn put some code down in as many stupid and seemingly pointless ways as you can to test your hypotheses (e.g. can you pass an int variable to function taking a short, is a null string an instance of a string) and it'll stick better.

Just remember that you can be a brilliant Java programmer for 15 years and fail the exam, there's no shame. The exam isn't about showing your ability as a programmer, all certification exams are mainly about finding ways to make you fail by using obscure and irrelevent coding practices, misdirection and obfuscation. I imagine by reading the book you'll have already noticed this. In my opinion there should be absolutely no questions on the exam resulting in a compiler error.
Hello,
I've finished doing all mock exams from whizlabs but despite they saying '100% coverage' I didn't get a single question on Dates or Calendar.

In the KS/BB study guide there is a decent sized section on it and they seem to mention in the book topics not on the exam.

Is whizlabs wrong in this case or have new updates to OCJP6 removed Calendar/Dates?

Thanks.
Hello,
Two largely unrelated questions on the OCJP6 exam.

1. Somebody told me that for the 60 questions you answer on the exam, Oracle don't mark about 5 of them, so you only get marked on say 55 not 60 (meaning of course each question is worth much more in percentage). Can somebody clarify this and hazard a guess as to why on earth this is the case?

2. Can somebody tell me whether I need to learn about Map.Entry for NavigableMaps and all the related methods? I was doing some whizlabs stuff and there are a lot of questions on NavigableMaps and many include topics on methods/usage that is completely missing from the Kathy OCJP6 book, one such thing is Map.Entry (to name but one of many omissions/questions I'm getting). To be honest, I have a copy of OCJP5 book and for all the alterations to the 5 book you can spot them a mile off as they are clearly very hurriedly written and contain sparse detailed information unlike the rest of the book.

Thanks.
Hello,
I appreciate this is late to the thread but it's very relevant. I got this question on a mock exam and it is identical to the above and I got it wrong because I said it would be a forward declaration error in the same way as the above code. However it does work and produces the value 0. So, what is the difference?




and more to the point why are we potentially going to be given stupid questions like this that have no bearing on real life and the compiler will tell us if it's wrong or not ;)
Another error, page 152. Declares Integer variable 'valueA' then the next line decides to call it 'number'.

I'm no author, but can somebody explain why, when writing a coding book, the examples aren't proof read or even tested? If were to write a book I'd take the time out to make sure everything was correct and compiled successfully.
Hello,
I'm helping a colleague who is undergoing OCA and using this book. While I didn't like the Kathy Sierra OCJP 1.5 book that much, it's head and shoulders above this. The book is just dreadful with respect completely full of bugs and in an order I just cannot understand.

Just who were the proof readers and can't the author actually read his own book? I found this site because the publisher's website completely fails to provide an errata or mention of one and my colleague had a problem with the code mentioned above and I went looking for an errata to save him more pain:

2) Pg. 65
a) Integer hookSizeList;
should be
Integer hookSizesList.

b) Need clarification on example:
ayList <Integer> hookSizesList = new ArrayList<Integer>();
What is "ayList"?

Firstly hookSizeList is not used in the sample code so should not be in the sample, and secondly it should be ArrayList not ayList. A simple glance of the book would have spotted this. Thirdly no mention whatsoever that this will never compile unless you include the correct package.

But why do I also say badly ordered. Well, for a newcomer reading the book on the first chapter containing code (and subsequent chapters) the code is just snippets with no mention of how to actually get it working, e.g. there's a big section of Fishing yet the code completely forgets to mention the class Fish or a few other classes meaning you cannot compile the code and as you are just starting (I appreciate a limited knowledge of Java is required) it's just bad.

Get past that hurdle and there are concepts mentioned that aren't brough up until later chapters. After about 5 chapters there isn't a single code sample that you can actually type, compile and run.

Hello,
When you create a tomcat server in eclipse it is creating and running it's own version of tomcat (if you leave the defaults of the server) that serves only the projects you've added to it, not the one you might already have running.

Hence why you see tomcat as running outside of eclipse but not starting properly inside eclipse.

As for why it isn't working, it could be many reason. One possibility is because your TomCat is running already, eclipse can't start because port 8080 is arealy being used. It could also be something in the web.xml file, etc.

I think the documentation is very, very poor as I would really like to publish to another folder (e.g. my tomcat webapps folder) and get eclipse to use my running version of tomcat rather than running another instance but half the server options are disabled...
[ March 05, 2008: Message edited by: neil walker ]
Hello,
Given the emergence of the sun standard JSF and competing modern frameworks such as Tapestry, do you think struts has reached the end of it's useful life and is being replaced by component based frameworks?
16 years ago
ok, thanks, I think I understand. But I don't agree

Don't you think that with all these variations on how numbers and equality is handled in java (not just numbers, but strings) is making the language a joke? the whole point, I think, is that things should be simple and consistent. The two statements above should produce the same result, no matter what internal reasons say otherwise (you don't get any of these problems, for example, in c#). The same goes for assigning a float literal to a float, it should work if the number is ok to fit.

Then there is the case of using == on number objects producing different results depending on whether the value is more or less than 127. Just crazy if you ask me.

Then you move onto strings, depending on how you create and use them you get different results when you use ==. Yes, I know strings are references but Strings, like numbers, are treated differently which can be seen by the way you can initialise them, concatenate strings, auto-boxing, etc. I can't remember one single instance when I've needed to compare the reference of strings or number objects, all I want to do with strings when comparisons are concerned is check for equality and using .equals() is not how it should be done as it's ugly and unintuitive. I have a simple solution for this. Overload the == for strings and number objects and backwards compatibility can be kept in the same way as it's always done with the -source flag, then make the compile a bit more intuitive and allow number literals to be assigned to variables if they fit.

I guess this is digressing from the SCJP, but not really as fixing these faults as I see it means the exam is better because it might just start to focus on whether people know java, not know how to spot silly compiler errors hidden in code.
ah, sorry, i'm so used to pasting the code inside the same file that I didn't even notice it was inside main and not the class! I'm never going to pass this exam when I can't spot the obvious
[ January 25, 2008: Message edited by: neil walker ]
Hello,
Referring to chapter 3 self-test, question 7 (in my version it is page 269 for the question/answer on the class 'Zippy').

The answer given is A - all are legal

When I compile it I get a compile error stating the variable may not have been initialised (the shortened code snippet is below):
String[] x;
Object[] d=x;


However, I am running 1.6 and not 1.5 so don't know if this changes things - compiling with -source still fails. I hope not, otherwise I might have the wrong idea in my head for lots of things!

Thanks.