First Java Program Example

First Java Program Example

To create a Java program we would be required to create a Java class. In this
class we will print a string like "IIT Mumbai". To demonstrate about a Java
program I am giving a simple example.

Example

Here I am giving a simple example which will demonstrate you about how to
write your first program in Java. In this example I have created a simple class
named College.java. In side this class created a method named
displayDetails() which will print the string "IIT Mumbai" on call. This class
also contained a public static main method inside which Instantiate the class
and called the method displayDetails().

mikha
April 28, 2013
create a class called college.
how to create a class called 'college'.
1. create an instance of 'college' called 'cosmopoint'
2. create a default constructor for 'college'
3. create a destructor for 'college'
I didn't know how to create it. can you help me?