About Java
This is the first time for me to write something like this, usually I only write diary or how I feel about things. But this time, I want to try to write something seerrriousss like Java, and share the knowledge, hopefully by giving… I actually learn more.
Please give me feedback or comment, so I could improve my writing. Okay, I’ll start About Java by telling brief story about how Java was invented (hope you won’t get bored).
- Introduction
- Platform-Independent
- Object-Oriented
- Basic Java
- Abstract Class and Interface
- Overriding and Overloading Method
- (coming soon)
Java was invented by a group of people called “Green Team”, staffed at 13 people and led by James Gosling. They were gathered by Sun Microsystems in 1991, with a project called “the Green Project”, which goal is not to create new programming language, but how to anticipate the “next wave” in computing, and able to meet the challenges of application development in the context of heterogeneous. When the project started, C++ was the language of choice. But over time, the difficulties encountered with C++ until they decide it is better to create an entirely new language platform.
Java programming language is a high-level language, which strongly known with Platform-Independent and Object-Oriented characteristic.
Java platform is a software platform that runs on top of other hardware-based platforms (Write Once Run Everywhere).
(more…)
Object oriented programming observe things into state and behaviour.
(more…)
Before we start learning the basic of java, you need to install java platform (JDK 5.0) on your computer to be able to run simple java program. It is available free of charge. Follow the installation instructions, and make sure you set the PATH variable, so you’ll be able to conveniently run the JDK executables ( javac.exe, java.exe ) from any directory, without having to type the full path of the directory where you installed JDK.
(more…)
| Abstract Class | Interface |
|
Abstract class can contain fields and methods that implement default behavior, and can also have abstract methods. |
Interface can only contain constants (public static and final variables) and method signatures (method without body / abstract method). |
| Overriding Method | Overloading Method |
|
A child class can override parent’s instance method with the same name, parameters, and return type. |
Multiple methods with the same name and return type, but different parameters. |
References :
- http://www.java.com/en/about/
- http://java.sun.com/features/1998/05/birthday.html
- http://java.sun.com/docs/white/langenv/index.html