First thing you should know about this tutorial that you will learn JAVA but mostly about the practical applications. What i m trying to say you will not get clear view of concepts of java clearly but you will be able to start programming in the java that i can give you the 80-90% guarantee if you really wanna learn JAVA which means it depends about your curiosity and will to learn Java or anything.
If you also want to learn the deep concepts of java then you have to put me through the questions in the comment box write below like how did happened?,why have written that not something else...:)
I wish you good luck and happy learning + enjoy the java...:)
The first question arises how to start with java ??
Now the answer to it is you have to install java/JDK i.e. Java Development kit on your computer or laptop.
To run any java program or project this is necessary .
Firstly you have to download JDK. you can get it from here : http://java.com/en/download/index.jsp
After Downloading you will get a jdk-6/7-windows file double click on that,click yes.
Click Accept
Click next and then Finish.
Now, we will begin with a Small program of java. Go to run open Notepad and write code :
class abc
{
public static void main (String[ ] p)
{
System.out.print("yeah we did it...this is my first java program");
}
}
Now save it as abc.java like :
Select the folder according to yourself but name of the file must be same as class name in which main is present.
now go to run write cmd i.e. open command prompt .
Now go to the folder where .java file is present by using 'cd folder name/jax' if you have saved it in different drive use command 'drive name/d : ' . so after that
give command :
javac abc.java
ohh Did i missed something..yes i do...we didn't told the OS where the hell is java and javac command...
so to do this there is 2 ways one using CMD other GUI ...i will prefer GUI one as a beginner . so now you have to go to : Control Panel\System and Security\System ..and open Advanced System Settings go to Environment Variables then find Path in system variables add the path of the java bin which is in c drive and then ok and apply.
Now re-open cmd write : javac abc.java and press enter
it will compile the java program.
Now give command : java abc
and see the magic of JAVA
i would love to listen the comments about your experience as it takes hours to write a post and your queries also will be appreciated and solved and answered equally. the next tutorial will discuss the concepts and the syntax used in above program. thanking you
this is rs signing off.
LINK TO NEXT POST :
java tutorial java beginner
If you also want to learn the deep concepts of java then you have to put me through the questions in the comment box write below like how did happened?,why have written that not something else...:)
I wish you good luck and happy learning + enjoy the java...:)
The first question arises how to start with java ??
Now the answer to it is you have to install java/JDK i.e. Java Development kit on your computer or laptop.
To run any java program or project this is necessary .
Firstly you have to download JDK. you can get it from here : http://java.com/en/download/index.jsp
After Downloading you will get a jdk-6/7-windows file double click on that,click yes.
Click next and then Finish.
Now, we will begin with a Small program of java. Go to run open Notepad and write code :
class abc
{
public static void main (String[ ] p)
{
System.out.print("yeah we did it...this is my first java program");
}
}
Now save it as abc.java like :
now go to run write cmd i.e. open command prompt .
Now go to the folder where .java file is present by using 'cd folder name/jax' if you have saved it in different drive use command 'drive name/d : ' . so after that
give command :
javac abc.java
ohh Did i missed something..yes i do...we didn't told the OS where the hell is java and javac command...
so to do this there is 2 ways one using CMD other GUI ...i will prefer GUI one as a beginner . so now you have to go to : Control Panel\System and Security\System ..and open Advanced System Settings go to Environment Variables then find Path in system variables add the path of the java bin which is in c drive and then ok and apply.
Now re-open cmd write : javac abc.java and press enter
it will compile the java program.
Now give command : java abc
and see the magic of JAVA
i would love to listen the comments about your experience as it takes hours to write a post and your queries also will be appreciated and solved and answered equally. the next tutorial will discuss the concepts and the syntax used in above program. thanking you
this is rs signing off.
LINK TO NEXT POST :
java tutorial java beginner
Comments
Post a Comment