Java Programing laungage

Core Java Tutorial

Introduction of Core Java

How To Install JDk and Set of Path

Syntax of java Program

Difference between Java and C/C++

Advantage and Disadvantage of Java

What is Java

Why Java is not Pure Object Oriented Language

Java has Following Features/Characteristics

Limitation of Java Language and Java Internet

Common Misconception about Java

Simple Program of Java

Integrated Development Environment in java

Compile and Run Java Program

Applet and Comments in Java

Tokens in Java

Keywords in Java

Identifier and Variables in Java


Data Type in Java

Assignments and Initialization in Java

Operators in Java

Rule of Precedence in Java

Operator on Integer and Separators in Java Programming

Java Control Flow of Statements

If and If-else Selection Statement

Nested If-else and If-else-If Selection Statement

switch case and conditional operator Selection Statement

for and while Loop

do..while and for each Loop

break and labeled break statement

continue and labeled continue statement

return Statement and exit() Method

Escape Sequence for Special Characters and Unicode Code

Constants and Block or Scope

Statement in Java

Conversions between Numeric Types in Java

Import Statement in Java

User Input in Java using Scanner Class

User Input in Java using Console Class

Array in Java

One Dimensional Array

Two Dimensional Array

Two Dimensional Array Program

Command Line Argument in Java

String args Types in Java

Uneven/Jagged array in java

Math Class Function and Constant

Math Class all Function used in a program

Enumerated Types in Java

Object Oriented Programming v/s Procedural Programming

Object Oriented Programming Concepts in Java

Introduction to Class,Object and Method in Java

Class Declaration in Java

Class & Objects in java

Encapsulation in Java

Modifiers/Visibility for a Class or Interrface or member of a Class

Polymorphism in Java

Runtime polymorphism (dynamic binding or method overriding)

How To Install JDk and Set of Path
Previous Home Next

In this section we are learn how java is installed and set path. To make and run on java program we need write a program on notepad then run a program through compiler java comipler JDK (java development kit). you have to following steps:

  1. Download jdk latest version from sun website (e.g Download jdk 1.7 for win 7 32 bit or 64 bit).
  2. Then installed JDK.
  3. Then check which version is installed in my system.
  4. First go to Command Prompt.
  5. Start -> Run -> Type cmd and then click ok.
  6. Then command Prompt write javac -version for check version of java is installed on pc(System).
  7. Write a java program to used following editor.
    1. Notepad.
    2. JCreator.
    3. NetBeans.
    4. Eclipse.
  8. To set path.If we set the path of java folder then we can run java program anywhere otherwise we have run our java programs from the bin folder of java.
  9. Right click on my computer -> then C drive open->then program files folder open->then java folder open->then jdk folder open->then bin folder open->click on address bar right click on the block and select copy then close my computer.
  10. Then right click on my computer and select properties.
  11. Then click on Advanced System Settings.
  12. Then click on Environment variables.
  13. Go to System Variables->and find path variables and then click on edit button and remove the block type semicolon and past then paste the path of bin folder.
  14. Then create a folder of any drive to save all java program in this folder (e.g click on my computer ->then click on c drive ->then right click - > crate folder and then clic ok to save all programs in this folder).
  15. Now you can save and run on your program any where in your system.
  16. Write the code on notepad

    A Simple Java Program Write the program using note pad for window system or either used net bean or eclipse these are the IDE for program writing.following program is written in note pad.

    public class Hello
    	public static void main(String[] args) 
    		System.out.println("Hello World!");
  17. save it class name with .java extension ( default save as type (.txt) and then change save as type all files.
  18. Write the code on notepad and save it class name with .java extension ,the default save as type (.txt) then save our program save.with string(e.g  "Hello.Java").
  19. Compile and run the program following steps
    1. My java program is save c drive new folder then compile and run the program process first open Command Prompt and then compile on program through comand prompt c:\Newfolder >javac
    2. To run c:\Newfolder >java Hello
Previous Home Next