Search This Blog
Html tutorial, css tutorial, js tutorial, website creating tutorial, android app development tutorial, java tutorial, xml tutorial, programming tutorial
Featured
- Get link
- X
- Other Apps
Java tutorial. How to start with java. Tutorial
Java Tutorial.
Java is an awesome programming language. You can use it develop mobile apps, hacking and much much much more.
In this tutorial we are going to show you a basic syntax of Java and then see how this syntax works.
public class Main {
public static void main(String[] args) {
System.out.println("Hello World");
}
}
First of all you will get to know that public is written as identifier and we will discuss further.
Now we have a class name that is main which means that the name of file is Main.java you have save your name of file with extension .java.
The curly braces mark beginning and end of the function.
In Java you can use single line comments with // and multi line comments with /* */ and the comments are the block of code that is not going to be executed and it does not create any error in your file and program.
System.out.println is the function in which you can show a text or variables directly in Java compiler.
In our next webpage we will get to know that how we will create another programs with tutorial
- Get link
- X
- Other Apps
Comments