Elite Coders Society
Hello Guest!
Join us here in this forum!
Please Log in or Register to access more feature in this site.
Start Learning!

† Copyright ©️ 2011 - EliteCoders.forums.ag †


Start sharing and learning new skills about programming and design by building connections with other professional and students.
 
HomeForumPortalCalendarGallerySearchRegisterLog in
Elite Coders Partner Links

EliteCoders™️ News!
Hello Guest!, Welcome in our forum. Be active!

Share | 
 

 Language Basics

View previous topic View next topic Go down 
AuthorMessage
avatar
Admin[dElmARk]
Forum Owner
Forum Owner

Posts : 78
EC-Points : 6304
Thanked : 21
Join date : 15/10/2011
Age : 22
Location : Philippines

Hacker's Info
Hacking Exp:
0/0  (0/0)
Hacker Type: White Hat
Hacking Title:

PostSubject: Language Basics   Tue Nov 01, 2011 8:55 am

Language Basics

Create your first Java program

Let's start by compiling and running the following short sample program.
________________

/*
This is a simple Java program. Call this file "progname.java".
*/


public class progname {
// Your program begins with a call to main().
public static void main(String args[]) {
System.out.println("Java.");
}
}

Code:
/*
 This is a simple Java program. Call this file "progname.java".
 */

public class progname {
  // Your program begins with a call to main().
  public static void main(String args[]) {
    System.out.println("Java.");
      }
}

In Java, a source file is called a compilation unit. It is a text file that contains one or more class definitions. The Java compiler requires that a source file use the .java filename extension.

In Java, all code must reside inside a class. By convention, the name of the public class should match the its file name. And Java is case-sensitive.

______________________________________
[You must be registered and logged in to see this image.]
[You must be registered and logged in to see this image.]
Back to top Go down
View user profile
avatar
Admin[dElmARk]
Forum Owner
Forum Owner

Posts : 78
EC-Points : 6304
Thanked : 21
Join date : 15/10/2011
Age : 22
Location : Philippines

Hacker's Info
Hacking Exp:
0/0  (0/0)
Hacker Type: White Hat
Hacking Title:

PostSubject: Re: Language Basics   Thu Dec 15, 2011 3:59 pm

To compile: [You must be registered and logged in to see this link.]

______________________________________
[You must be registered and logged in to see this image.]
[You must be registered and logged in to see this image.]
Back to top Go down
View user profile
 

Language Basics

View previous topic View next topic Back to top 
Page 1 of 1

Permissions in this forum:You cannot reply to topics in this forum
Elite Coders Society :: Software Development :: Java Programming :: Java Programming-

Protected by Copyscape Duplicate Content Finder
Powered By EliteCoders™

Elite Coders Partner Links
GreyPhantomYour Link HereYour Link HereYour Link Here
Yahoo!GoogleFacebookForumotion