INTRODUCCTION
Java is a language oriented to objects and can be executed in any platform.
This programming language is for development projects about interfaces on desktop, web and smartphones.
REQUIREMENTS TO RUN
You need to download a IDE, either netbeans or eclipse:
https://netbeans.org/downloads/ (remember also download the jdk)
https://eclipse.org/downloads/
HELLO WORLD
Here we use netbeans,
1) Open your netbeans.
2) File --> New Project --> Select Projects: Java Application and click button Next
3) Write the project name: test
4) Check if the checkbox "Create Main Class" is true and click button Finish
5) Inside of the method main write:
System.out.println("Hello World");
6) Run --> Run Project or F6
and it's all!, in the console you can see the text "Hello World"
SIMILAR SYNTAX
C++ is the language more similar to Java, because :
1) They have the same syntax to comment "//"
2) Both are languages oriented to object.
3) They use ";" to finish a sentence

No hay comentarios:
Publicar un comentario