How to really learn Java?

Status
Not open for further replies.
I'm currently taking CSCI 1302, which is the second part of Java at school. I'm really bored with Java so far, but I like it. I made a perfect 'A' in the first part and the second part seems just as easy. The first lab took about 15 minutes (copy paste the useful parts out of old projects and 5 minutes of typing). I yawned my way through the project and finished it during a lunch break at work. I have read the entire book, but I don't feel that I know Java. I know all the packages mentioned in the book (Java How to program 3rd Ed. Deitel & Deitel) well, and I looked all of them up in a reference I bought as well as the JavaDcos.

How do I learn new packages?

When I want to do something, how do I find out if what I need exsists?

When can one say he "knows" Java? I am thinking of getting one of the Sun Certifications after this semester.

I asked my professor these questions and ethier he doesn't understand what I am asking or I don't know what I'm asking, which I probably don't since he doesn't care to elaborate beyond a few accented comments on the current chapter.

I also can't seem to think of anything useful to write. Applets are pretty, but I'm not really interested in writing bandwidth wasters. Bytecode applications suck, so there is no point in trying to write something useful and no one has written a true binary compilier that compiles GUI(that I know of, but I obviously don't know much). I like Java, but it seems a little useless to me at the moment. I want to learn how to really use it. I love coding, but I had alot more fun with PERL and C.

Help enlighten me to the Glory of Java, TIA

s--z
 
Originally posted by stackz:
I'm currently taking CSCI 1302, which is the second part of Java at school. I'm really bored with Java so far, but I like it. I made a perfect 'A' in the first part and the second part seems just as easy. The first lab took about 15 minutes (copy paste the useful parts out of old projects and 5 minutes of typing). I yawned my way through the project and finished it during a lunch break at work. I have read the entire book, but I don't feel that I know Java. I know all the packages mentioned in the book (Java How to program 3rd Ed. Deitel & Deitel) well, and I looked all of them up in a reference I bought as well as the JavaDcos.

How do I learn new packages?
You code. And then look up the API documentation when needed. The packages are all named in a fairly straight forward fashion.

If you want to learn about specific packages, sun's java tutorial pages are a good place to start. Really, I'd think it was obvious ;)
http://java.sun.com/docs/books/tutorial/

When I want to do something, how do I find out if what I need exsists?
You have a brief look at the API documentation. Again - its already grouped rather nicely, so just have a brief read over each of the package descriptions as a guide, then look inside.

In the end though... very little can substitute for experience after you get the basics down.

When can one say he "knows" Java? I am thinking of getting one of the Sun Certifications after this semester.

Knows java? Thats always debatable. But I guess industry wise, Sun's java developer certification is not a bad start. But really, I wouldn't bother going to a course for it, and I wouldn't bother to actually do the test and get certification unless I was looking for a job and wanted that extra bit of paper to help along.
The material taught in the courses is ... OK I suppose. You're supposed to get a better idea of how the language works, and a lot of the little details and/or quirks of the syntax, the core packages and so forth.
I recommend you get one of the java certification books (i think the most basic one is the "developer" certification.. and that is sufficient for most purposes anyway), and just go through it and do the exercises. Don't bother getting books that have the api documentation as an appendix though - thats just a waste of paper.

I asked my professor these questions and ethier he doesn't understand what I am asking or I don't know what I'm asking, which I probably don't since he doesn't care to elaborate beyond a few accented comments on the current chapter.
Frequently, the only reason that universities teach languages is to get a common ground for students to learn in. Its a means to an end really ... for example, teaching java to get you acquainted with some OO concepts in practice, or similar. In the end, you aren't at university to learn a language... you're there to get a little piece of paper, and perhaps learn some more fundamental theory in computer science.

I also can't seem to think of anything useful to write. Applets are pretty, but I'm not really interested in writing bandwidth wasters. Bytecode applications suck, so there is no point in trying to write something useful and no one has written a true binary compilier that compiles GUI(that I know of, but I obviously don't know much). I like Java, but it seems a little useless to me at the moment. I want to learn how to really use it. I love coding, but I had alot more fun with PERL and C.

Hm. I rather dislike PERL. But i use it anyway.

Anyway, you can write anything you want in java. If you're just interested in learning stuff, then write anything. GUIs aren't as bad as they used to be.. especially in the new 1.4 beta, its getting half decent. As long as you use swing - you're a fool if you still use awt, imho. In fact, you'll notice that a few applications here and there do actually use Swing (the big java IDEs are a good example, like Jbuilder and Forte)

A half decent idea would be to check out some of the open source projects using java, such as the Jakarta Project or Jabber, and many more. GOOOOGLE is yoru friend.

Help enlighten me to the Glory of Java, TIA

What glory? ... I may like the language, but its no where near "glorious". heheh.
s--z
 

wb

Ars Legatus Legionis
25,208
Subscriptor
Knows java? Thats always debatable. But I guess industry wise, Sun's java developer certification is not a bad start. But really, I wouldn't bother going to a course for it, and I wouldn't bother to actually do the test and get certification unless I was looking for a job and wanted that extra bit of paper to help along.

I used to think Sun's certification was useful until I met a Sun certified developer that couldn't program her way out of a paper bag. I think it really boils down to practice. I know my company doesn't think any better of anyone that puts a certification on their resume. Instead, we look at experience and demonstration of capability.


I also can't seem to think of anything useful to write. Applets are pretty, but I'm not really interested in writing bandwidth wasters. Bytecode applications suck, so there is no point in trying to write something useful and no one has written a true binary compilier that compiles GUI(that I know of, but I obviously don't know much).

So, you just started learning java and admit that you have no experience beyond the classroom, but you feel capable of making sweeping generalizations about its capabilities?

Regardless here's a couple of easy suggestions:

Want a quick afternoon's programming job? Write a chat server/client pair in Java. Make the client-side an applet.

Try writing some games in Java. Tetris is always a good place to start if you have no experience writing games.


I guess that's all I'm going to provide, since people's tastes differ, and projects that interest me might not interest you. Instead, the next time you are doing something on your computer, and think to yourself (or hear someone else say) "I wish I had a piece of software to do X." why don't you try writing X in Java?
 
hikikomori...
A half decent idea would be to check out some of the open source projects using java, such as the Jakarta Project or Jabber, and many more. GOOOOGLE is yoru friend.

I will look into it. Sounds cool.

wb...
So, you just started learning java and admit that you have no experience beyond the classroom, but you feel capable of making sweeping generalizations about its capabilities?

Close, but not quite. I'm making sweeping generalizations because I have no experience beyond the classroom. I like your ideas they sound like real practice and the chat client sounds like a chalange to someone with my limited expereince.

Thanks all,
s--z
 

green_buddy

Wise, Aged Ars Veteran
126
I think what you might really be trying to ask wrt "really knowing java" is something you probably haven't been introduced to yet. The topic of Design Patterns doesn't really get hit in schools ('cause you're too busy learning scheme so you can modify emacs ;), or atleast not at my school! :(

Anyway, I don't know if anyone really "knows" java, other than James Gosling, and even he probably got preempted in some of the later additions/changes to the language... I'm not even sure if it's even correct to say that anyone really "knows <insert language here". In general I would say that programming in any language is probably the same... the real common denominator are the software patterns you use and know about.

A good book for Design Patterns that I like is just that... "Design Patters" by Gamma, Helm, Johnson, and Vlissides. I've found more often than not, those who take their software careers seriously have read that book atleast once, or atleast have seen it and glanced through it.

Don't get me wrong, I love java, and really think that development time and time to market is way faster using java. For me it's not as syntaxy as C/C++ is, but that's just me (and many other fellow java zealots I know). But I think when you hear that someone's a really great java programmer, what they really mean, is they're good software architects which means they know a thing or two about patterns.

I myself found most cs courses in our department at school mostly useless... but then again, that might be most formal education.

Happy hunting on your quest for knowledge! :D
-green_buddy
 
Status
Not open for further replies.