Monday, 29 September 2014

NetBeans IDE

What is NetBeans?

Notes on NetBeans

Features of NetBeans Integrated Development Environment

NetBeans is an Integrated Developement Environment for developing Java, PHP, C/C++ and HTML5. NetBeans is developed in Java by Oracle Corporation and it is compatible with all Operating System platforms. The latest version of NetBeans released at the time of writing this article is NetBeans IDE 8.00. 


All function of the IDE are provided as modules. You can download a single NetBeans Installation file and start working immediately. 

Features of NetBeans

Some of the Key Features are:

  • User interface management
  • User settings management
  • Storage management 
  • Window management
  • Wizard framework
  • NetBeans Visual Library
  • Integrated development tools

Sunday, 14 September 2014

Java Applet

What is Applet?

Simple Definition for Java Applet

Use of applet in Programming

An Applet is an application designed to be transmitted over internet and executed by a Java-compatible web browser. Other-words, Applet is a intelligent Java Program that can react to user inputs and dynamically change according to the programmer's design. 

How Java Applet Works 
Applets are embedded within a HTML code by using the applet tag as shown in the picture. The HelloWorld.class file contains the bytecode which created after compiling the java program. The size of the applet is defined inside the Applet Tag.

Monday, 4 August 2014

Java Code to find the Area of Circle

Area of a Circle Using Java

A Java program to accept the radius of a Circle from user and calculate the area.

//A small java program to calculate the area of a circle
import java.util.Scanner;

public class JavaCircleArea {

    public static void main(String args[])
      int radius;
      System.out.println("Enter the Radius of the Circle ");

      Scanner in = new Scanner(;
      radius = in.nextInt(); 

      double areaCircle = Math.PI*radius*radius;
      System.out.println("Area of the Circle = "+areaCircle);


Enter the Radius of the Circle 
Area of the Circle = 28.274333882308138

Wednesday, 2 July 2014

Odd or Even Program in Java

Odd or Even Check using Java Code

A Java program to accept a number from keyboard and check whether it is Odd or Even

//A small java program to check the accepted number is Odd or Even
import java.util.Scanner;

public class OddEven {

    public static void main(String args[])
      int x;
      System.out.println("Enter an integer to check if it is odd or even ");
      Scanner in = new Scanner(;
      x = in.nextInt();

      if ( x % 2 == 0 )
         System.out.println("You entered an even number.");
         System.out.println("You entered an odd number.");


Enter an integer to check if it is odd or even 
You entered an odd number.

Saturday, 17 May 2014

JAVA Program to Find the Factorial of a Number

Factorial of a number USING JAVA

A program to accept a number from keyboard and print the Factorial.

//A small java program to calculate the Factorial
import java.util.Scanner;
public class Factorial
public static void main(String[] args)
{           final int fact;
             System.out.println("Enter a number to find the Factorial");
             Scanner in = new Scanner(;
             System.out.println( "Factorial of " + fact + " is " + factorial(fact));

public static int factorial(int n)
             int result = 1;
for(int i = 2; i <= n; i++)
result *= i;
return result;



Enter a number to find the Factorial
Factorial of 5 is 120