Saturday 23 January 2016

Java tutorials:Learn java in 3 days,basic java tutorials part 1

Tags: java tutorial,java for noobies,java learning made easy,java coding,java in 10minutes,java tutorials,basic programs for java,basic java tutorials
First of all i like to say that its a basic tutorial for java  written for noobies.yeah i have defined these syntax in easily understandable manner

Lets do it guys,lts learning time

BASIC SYNTAX:
1. class:
the class is like a pet name,yes its a name you are going to give for the program.it may be defined as like class garbagetin
Lol a garbage tin is a class too,but the actual meaning is not like that ,i will explain in following tutorials,yes you can learn here, learn about increasing ram here
http://zombietutorials.blogspot.in/2016/01/increase-ram-of-your-pcunlimited.html

2. Public :
its like a public or private thing lol,the program you want to run,yes whether you wanna make your program as public or private or global,lol.yes its just basic definition for public

3. Static
The values entered in program whether you wanna make it as static or like floating values?yes the values are static in basic programs,i will teach you what is dynamic in later tutorials,its like whether you want to place a program in land or a waving sea

4. void:
The values entered in program are returned to program,yes its like boomerang,void is not a world like in ben 10,its just void lol

5.main:
What is main?lol it's a main core of the program,its the place where you wanna tell the computer what you wanna do it,main is the main part of program,you can declare in brackets what set of functions you wanna use ,yez like strings,anything you wanna use

6.system.out.println:
Yes you wanna computer to print something??yes yoh can make it,system.out means you make your computer to print something,its like printf in c
Be sure to end it with semicolon or else compiler will screw you

Here is a sample program with this syntax words ,i make my computer to say hello world to me,what about yours???.yes you can also do it,just read my program with step by step tutorial

Sample program.for hello world

Class garbage //its a name i wanna use for my program
{//open bracket for class
Public static void main(String[],args)//Make sure the s for string must be always in caps
{//open bracket for main program
System.out.println("hello world");//make sure the s for system also be caps only
}//close Bracket for main program
}//close bracket for class

/ makes the compiler not to read the lines after it

Save it as garbage.java then compile in command prompt,try typing your own program,lets code.....
Now after getting output without errors you have acheived first step in java programming

Tags: java tutorial,java for noobies,java learning made easy,java coding,java in 10minutes,java tutorials,basic programs for java,basic java tutorials

No comments:

Post a Comment