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 †
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.
 
HomeForumLanguage Basics 2a512xyPortalLatest imagesGalleryLanguage Basics Dw6hztSearchLanguage Basics 2ns506pLanguage Basics 2dt2b75RegisterLog 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
Admin[dElmARk]
Admin[dElmARk]
Forum Owner
Forum Owner

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

Hacker's Info
Hacking Exp:
Language Basics Left_bar_bleue0/0Language Basics Empty_bar_bleue  (0/0)
Hacker Type: White Hat
Hacking Title:

Language Basics Empty
PostSubject: Language Basics   Language Basics EmptyTue 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.
Back to top Go down
Admin[dElmARk]
Admin[dElmARk]
Forum Owner
Forum Owner

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

Hacker's Info
Hacking Exp:
Language Basics Left_bar_bleue0/0Language Basics Empty_bar_bleue  (0/0)
Hacker Type: White Hat
Hacking Title:

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

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

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