1. The first simple java program is also known as "hello world" java program. The output of this program is to print "Hello world".
2. Below is the java program:
class MyClass
{
public static void main(String args[])
{
System.out.println("Hello world");
}
}
{
public static void main(String args[])
{
System.out.println("Hello world");
}
}
3. Brief description of this program. Here a class named MyClass is created, which contains a main() method.
No comments:
Post a Comment