Calling all Java Gurus (As well as beginners like me)

What is the best way to learn Java? I have been included on the team that writes software using Java and wanted to see if there is anyone who can recommend some methods. I have pulled out the Java programming book I have from school and am going through it.

Re: Calling all Java Gurus (As well as beginners like me)

I'm guessing you already know about classes and methods and console applications, right? What exactly are you trying to learn in Java? Swing? Or some other framework?

Re: Calling all Java Gurus (As well as beginners like me)

Nope. Don't know anything about Java.

Re: Calling all Java Gurus (As well as beginners like me)

Ah ok. Well, the easiest way to learn it is to try and develop something with it. Have you used C/C++ or C# before?

Re: Calling all Java Gurus (As well as beginners like me)

Start with one of those Idiot's guides...to get the basics... the best way to learn is to program in my opinion... make mistakes.. correct them.. repeat.. if the team you've joined already has big codebase... i would avoid looking at that code trying to make sense... coz chances are even the guy/gal who wrote that code cannot explain to you what he/she did...

also.. like someone else alluded to it... java has evolved into a system of languages/frameworks... so it will help to know what exactly you are trying to do...

if you have a specific question... post it here or msg me.. i will be happy to help

Re: Calling all Java Gurus (As well as beginners like me)

I completely agree with the guys!

I haven't ventured into Java yet, but the best way I learn is by breaking things :D

Re: Calling all Java Gurus (As well as beginners like me)

thank you for that heads up.. i will never hire you

Calling all Java Gurus (As well as beginners like me)

MM thought its coffee Java and she has broken many cups of it :chai:

Re: Calling all Java Gurus (As well as beginners like me)

You could try one of those teach yourself Java in x days book. If you ask how to solve a particular problem, it would be easier to explain the principle behind solving it.

Re: Calling all Java Gurus (As well as beginners like me)

Develop your interest in oop and try to think you are in oop paradigm. Well, this is I would recommend for creating interest in learning any OOP based language.

Re: Calling all Java Gurus (As well as beginners like me)

Thanks all. After reading all the news of whats going on in Pakistan dont even have words to respond here.

Re: Calling all Java Gurus (As well as beginners like me)

My way of learning new language is to build a calculator . Works everytime :)

Re: Calling all Java Gurus (As well as beginners like me)

That was one of the projects that I did when I took this class in school. Gotta get it back up and running.

Re: Calling all Java Gurus (As well as beginners like me)

There are tons of tutorials for beginners on Java programming. Best is to follow a complete example to develop an application, calculator, database, etc.

Re: Calling all Java Gurus (As well as beginners like me)

I know. I was trying to see if someone could point me to one.

Re: Calling all Java Gurus (As well as beginners like me)

It’s better if you use an IDE, Eclipse is popular one. They have some good tutorials Eclipse and Java for Total Beginners

Other option is to explore Oracle Java website The Java™ Tutorials

Re: Calling all Java Gurus (As well as beginners like me)

That is an excellent suggestion. When you are going through it, be sure to distinguish what is part of Java and what is part of the IDE. Some times it is hard to do with modern IDEs. This is why I tried to do some command-line programming before getting into IDEs. .

Re: Calling all Java Gurus (As well as beginners like me)

If I were in your place, I'd try a continuing education class in a university. I've found those to be more useful than those teach yourself books due to the structure. I've also found it to be easier to maintain the discipline to learn a skill that way. I've also met people who weren't even in the IT/CS fields before but after taking a couple of those classes were able to do well in IT jobs.

Re: Calling all Java Gurus (As well as beginners like me)

I actually took the Java Programming class in my MIS about 2 years ago but since I never used it again its all gone. I have actually started to go through my class material again. Here is how to catch exceptions in subclass.




/**
 *
 * Author:          Joel Khan
 * Date Created:    1-29-2012
 * Purpose:         Week 4 iLab IS579: Java Program to catch subclass exceptions. 
 *                   
 *
 */


public class Demo 
{
   public static void main( String] args )
   {
      try // throw ExceptionC
      {
         throw new ExceptionC();
      } // end try
      catch ( ExceptionA exception1 ) // catch ExceptionA and subclasses
      {
         System.err.println( "First Exception subclass caught. 
" );
      } // end catch

      try // throw ExceptionB
      {
         throw new ExceptionB();
      } // end try
      catch ( ExceptionA exception2 ) // catch ExceptionA and subclasses
      {
         System.err.println( "Second Exception subclass caught. 
" );
      } // end try
   } // end main
} // end class Demo