Learnng java is no different than learning any object oriented languange. So the basic concepts of object oriented prinicples has to be understood to be able to program in Java. Different training materials has been supplied - from this one will need to extract out:
Starting points will be
1) JDK & JRE: What are those. JDK contains the set of tools which allows one to compile and run java code.
Who makes JDK - Sun, IBM - different companies have their own version of JDK.
JRE on the other hand are built by larger set of companies and some are faster than others on a given platform - BEA has JRockit etc.
2) How to compile and run a java code:
> javac MyClass.java
> java MyClass
The concepts that one will need to take out from Java tutorials are:
a) Language basics - datatypes, loops , operators, if other syntax as how to write programming logic.
b) Pass by Value Vs Pass by reference
c) Object oriented concepts - class, objects, inheritance, polymorphism, association
aggregation etc.
Java Object : Every class in Java is coming from Java Object class and some of their key methods.
d) Packages
e) Main Method , Writing to console, reading from console etc.
Resources:
http://java.sun.com/docs/books/tutorial/
http://java.sun.com/docs/books/tutorial/java/index.htinml
http://www.cafeaulait.org/course/
http://math.hws.edu/javanotes/
With these details one can wite some java programs to do some fun stuff,
Ex: Take input of 4 numbers and perform their sum, avg, median.
Friday, June 22, 2007
Subscribe to:
Comments (Atom)