Write a program in JAVA to display a string.

The descriptions that follow use the standard java 2 SDK ( Software Development kit), which is available from Sum Microsystems. Click here to download . The First thing that you must learn about java is that the name you give to a source file is very important. Therefor, class name and program name should be same.

/*This is a simple java program.*/
class Example {
//Your program begins with a call to main().
public static void main(String args[]) {
System.out.println("This is a simple Java Program.");
}
}

Output:

This is a simple Java program.

0 comments:

Post a Comment

 

About Me

It's Me!Hi, I'm Moinuddin. I'm a Software Engineer at WIPRO working on Microsoft .NET Technology. I'm interested in a wide range of technology topics, mainly Microsoft including Windows Azure, WCF, WPF, Silverlight and any other cool technology that catches the eye.

Site Info

ProjectCSharp.com is mainly about demonstrating real time examples in different technologies like ASP.NET, WCF, WPF, Silverlight, Azure etc..,

Followers

Help Links

Project CSharp (C#) Copyright © 2011. All Rights Reserved.