Re: Is there an easy way to find the right class?
Lew wrote:
<http://java.sun.com/docs/books/tutorial/collections/index.html>
(Written by Josh Bloch!)
Farcus Pottysquirt wrote:
You mean the guy who wrote _Essential Java_ ?
Yes. Read everything by him that you can.
Or in depth tutorials like
<http://java.sun.com/developer/onlineTraining/essentials/>
Looked there... 2003? So I guess jdk1.6 isn't being looked at yet?
These may be old but they still work. There are other resources for newer
packages.
Aside from that I recommend studying the API package by package.
Here's a good place for studying java.util.
<http://java.sun.com/j2se/1.5.0/docs/api/java/util/package-summary.html>
Do each of the packages have a page like this?
Pretty much.
You can go a long time knowing only a subset. For example, I am only
now finally after forever getting around to studying the NIO packages.
<http://java.sun.com/javase/6/docs/api/java/nio/package-summary.html#package_description>
Did you have a particular reason to study the NIO packages?
Only because it was way old and I didn't know it yet.
If so, was it because you found out that the NIO package has a class that your app can use?
Nope. But now that I am learning about it, actually them, I see all kinds of
usefulness.
And how do you know which package to study?
All of them.
Did you ask someone like I'm asking the group now?
I did not. I study all of them. I haven't finished yet, and there remain many
packages I have not yet started on.
Sometimes a project will have me learn something, as when I was first tasked
with designing and implementing a Web service using SOAP.
I'd say that java.lang, java.util (and related) and java.io/java.nio (and
related) are the most important to learn first. For Web apps know the servlet
APIs and how to use JSP, JSTL and EL. Know about generics, threading and a few
dozen useful patterns. Read the white papers, such as the theoretical
underpinnings of the Java synchronization (Hoare monitors). Learn about things
that Java doesn't support (e.g., function closures), and what Java has instead
(functor classes).
In other words, I do not see any easy ways. Is there an easy way to be a
concert violinist?
GIYF??? - ... ahhh... google is your friend
Tourist in New York City:
"Can you tell me how to get to Carnegie Hall?"
Manhattanite:
"Practice, practice, practice!"
- Lew
- Lew