Jeff Taylor

Greenhorn
+ Follow
since Dec 08, 2001
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 Jeff Taylor

Well, i passed the exam some days ago. I wish I would have been able to archieve a higher score.
I took the Marcus Green exams a week before the test and scored safely over 90% in all of them. In the real thing my score was only as low as 84%.
I guess i was really well prepared, but i've totally messed up my score: I could only sleep for 3 hours or something the night before. When taking the exam I was quite in a hurry, cause i had an appointment right after the exam, so i rushed through the questions in about 40 minutes.
After hitting the finish button and seeing the score I wasn't satisified at all.
Damn... some minutes later i realized my wrong answers. I even placed a wrong answer on a stupidly simple question, which showed an invalid main method (wrong signature) and asked what would happen if you try to run the thing. I answered it wrong. Grrr.
Please people do me a favor - never take this exam in a hurry. Relax and take your time! Utilize the 2 hours.
/jt
22 years ago

Uh.. seems that i missed a really basic concept: the difference between
1) T[]arrayname
and
2) T arrayname[] .
#1 allows the allocation of multiple arrays of type T, whereas #2 permits the declaration of multiple variables of type T. I was really stunned, that i missed something like that although i felt very confident about the java basics. :/
/JT

If you want to buy only one book I'd advice you to take Mugal, because it covers "basic java" the best and it can be useful even after certification.
/JT
Map

I would choose answer d, because Lists allow duplicate entries and maintain their elements in a specified order. All elements in a List get an unique index, which can be used to access them ( http://java.sun.com/j2se/1.4/docs/api/java/util/List.html#get(int) ). I think that's what 'positional indexing' refers to.
/JT
By the way... you can't derive from jsp pages. The usage of other classes or packages inside a jsp is of course possible, but inheritance is not.
Perhaps the following goes a bit too far (so please simply ignore if you don't understand).
When you create medium to large sized webpages you will want to apply some tactics (also known as design patterns) when doing servlet/jsp programming. A very common approach is to use the MVC paradigm. This MVC or model view controller clearly separates the single components of web-programming: some parts are responsible for handling the logic and some others are responsible for rendering the view and presenting the stuff to the client. So after all you will want to employ servlets for handling your logic and jsp simply for displaying your information to the user. For this reason a large bunch of java code (or even inheritance) inside a jsp page is unacceptable.
I hope someone finds this information useful.
/JT
[This message has been edited by Jeff Taylor (edited December 08, 2001).]
22 years ago
JSP

Ashik: You have to know that JSPs are based on the Java Servlet techonology. Servlets allow you to do server side programming and to interact with client requests. After the servlet technology was published it wasn't accepted and adopted very well, since servlet programming requires a full understanding of the java programming language. Because of that Sun thought out something named JSP - Java Server Pages, which allow you to create server side java scripts by simply adding some code snippets into plain html and by naming your file something.jsp.
This is what happens behind the scenes: When you request a jsp page, the webserver compiles the jsp page into a servlet and the servlet (a java class) answers the request of the client. (Of course the jsp page is only converted and compiled once when you place it on the server or when you change your jsp.)
I hope you can understand my answer (and i didn't confuse you more than i helped you).
/JT
22 years ago
JSP

Because Servlets and JSP isn't a topic you can fully grasp when you read the first time about it I found it useful to read several books about this topic: My first book was also the one from O'Reilly ("Java Servlet Programming"), then i read "Core Servlets and JSP" from Sun and "Advanced Java Server Pages" also from Sun. Recently i also borrowed "Web Development with Java Server Pages" from Manning Publishing.
I have to say, that there are many books for java and advanced java books out there and - gladly - nearly every book is worth a read. Expecially O'Reilly, Sun and Wrox books are really good. You could buy any of them without having to consult book reviews.
Since you already have a good understanding (with the stuff you read) i'd definitly recommend you "Advanced Java Server Pages" (ISBN: 0130307041), which introduces you into some advanced topics and some design aspects of servlet and jsp programming. The topics covered there show you, how servlets and jsp are (or how they can be) actually applied in business.
A second title i can recommend you is "Core J2EE Patterns".
/JT
22 years ago
JSP