neil walker

+ Follow
since Jan 24, 2008
Merit badge: grant badges
For More
Cows and Likes
Total received
In last 30 days
Total given
Total received
Received in last 30 days
Total given
Given in last 30 days
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by neil walker

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 ;)

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.

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

I'm following this useful Java 6 EE guide: 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:

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:

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.
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?

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.

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.
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.

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 ]
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 ]
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!