Java Program to Demonstrate Use of 'static' Keyword

Write a Java program to demonstrate use of 'static' keyword.

Source Code
public class StaticDemo {

	static int count=0;
	StaticDemo() {
	public static void main(String args[]) {
		StaticDemo s1 = new StaticDemo();
		StaticDemo s2 = new StaticDemo();
		StaticDemo s3 = new StaticDemo();
		System.out.println(count+" objects are created!");
3 objects are created!