Tuesday, 18 February 2020

CODING > Java 01 Start


Starting on Java

Java is a general-purpose programming language that is class-based, object-oriented, and designed to have as few implementation dependencies as possible.
Java is for many, the starting point on coding as it represents the easy and flexible start as it is used as the base of so many server and desktop based applications

Downloading Java

There are many versions of different code languages and environments, depending if you are gonna use a interpreter for some application already written for any specific language or developing those apps themselves, you would need one or the other.
  • JRE: If you want to run Java programs, but not develop them, download the Java Runtime Environment
  • JDK: To start coding and executing java we would need  the Java Development Kit.
    Link here
At this point there should be some advice:

The Oracle JDK License has changed for releases starting April 16, 2019.

The new Oracle Technology Network License Agreement for Oracle Java SE is substantially different from prior Oracle JDK licenses. The new license permits certain uses, such as personal use and development use, at no cost -- but other uses authorized under prior Oracle JDK licenses may no longer be available

Apart from the Development kit, you would need as well some environment to start typing your code and run it, test it or break it. For that you need an IDE or Integrated Development Environment, we picked Eclipse

Start coding

After following the main tutorial, we arrive to our first java class / app which returns a classic "Hello World!"
public class HelloWorld {
public static void main(String[] args) {
// TODO Auto-generated method stub
System.out.println("Hello world!");
}
}

Links

No comments:

Post a Comment