java java java, learn java online free, classroom java tutorial, beginners java, java beginners, java programming, basic java ,basic java Tutorial, basic java Assignment
Hello friends ,
I am learning Basic java . my motive behind this blog is to help those want to learn Basic java online free of cost and grab each and every basic aspect of java programming .
you can find java tutorial from basic on this blog i will post each and every assignment of basic java with source code .
we will divide our course in to Day work .
Let's start Day One Basic Java Assignment for Beginners
Basic Requirement to learn Java Programming Download following software
1. Text Editor (Notepad, Notepad++, Edit pad, Eclipse )
i am using Notepad++ https://notepad-plus-plus.org/
2. Latest JDK current version is JDK 8 but depending on your PC Configuration and Bit (32 bit/ 64 bit) you need to install
i am using Notepad++ https://notepad-plus-plus.org/
2. Latest JDK current version is JDK 8 but depending on your PC Configuration and Bit (32 bit/ 64 bit) you need to install
Installation Steps
1. Download JDK
2. Double click on Exe start installation Select C: Drive Path
Accept the licnce agrement & click on next\
- 3.If you want to change the installation path click on Chage (Default path is c:\programfile\java\jdk1.5.2 ) click on next
5.Installing java on the computer
6.Click on finished to finish installation
Following are the steps showing how to set path
1. Click on start
2. Click on run
3. Type cmd and press enter
4. type your path like path = C:\Program Files\Java\j2sdk1.5.0\bin;(default)
5. if above screen showing then your path successfully set
6. type your program on any edit pad like note pad
7. save it by giving .java exetion
8. compile & run using command prompt
It is useful to set the PATH variable permanently so it will persist after rebooting.
To set the PATH variable permanently, add the full path of the jdk1.7.0\bin directory to the PATH variable. Typically, this full path looks something like C:\Program Files\Java\jdk1.7.0\bin.
Set the PATH variable as follows on Microsoft Windows:
- Click Start, then Control Panel, then System.
- Click Advanced, then Environment Variables.
- Add the location of the bin folder of the JDK installation for the PATH variable in System Variables. The following is a typical value for the PATH variable:
C:\WINDOWS\system32;C:\WINDOWS;C:\Program Files\Java\jdk1.7.0\bin
.
Java Program to print simple message Save as One.java on D: in java folder public class One{ public static void main(String args[]) { System.out.println("good one \n "); System.out.println("good Morning \n"); } }
h
h
How to run
- go to start menu in search type command cmd press enter run Javac to check jdl working or not
- type D: (to go on D drive )
- type cd java and press enter to go to that folder
- now compile program using javac one.java go to path you will find two file exist in java folder that is one.java and one.class that file i.e file created after compilation
- Run our program using java one
- it will give you output as good one and
good Morning on new line due to \n
java java java, learn java online free, classroom java tutorial, beginners java, java beginners, java programming, basic java ,basic java Tutorial, basic java Assignment
Comments