Post: Beginner Java Thread - [UPDATE: 16.11.2011]
11-16-2011, 07:50 PM #1
Theo Walcott
Do a barrel roll!
(adsbygoogle = window.adsbygoogle || []).push({}); Hello people of NGU i'm You must login or register to view this content., i'm well, an average coder in Java. And today, what i'm gonna do is that i'm going to tell you the basics Java.. So let's get started!

Table of Contest:

  1. What is Java?
  2. Getting Started!
  3. Hello World!


What is Java?
Java is a programming language originally developed by James Gosling at Sun Microsystems (now part of You must login or register to view this content.) and released in 1995 as a core component of Sun Microsystems' Java platform. The language derives much of its syntax from C and C++ but has a simpler object model and fewer low-level facilities. Java applications are typically compiled to bytecode (class file) that can run on any Java Virtual Machine (JVM) regardless of computer architecture. Java is a general-purpose, concurrent, class-based, object-oriented language that is specifically designed to have as few implementation dependencies as possible. It is intended to let application developers "write once, run anywhere." Java is currently one of the most popular programming languages in use, particularly for client-server web applications.

One characteristic of Java is portability, which means that computer programs written in the Java language must run similarly on any hardware/operating-system platform. This is achieved by compiling the Java language code to an intermediate representation called Java bytecode, instead of directly to platform-specific machine code. Java bytecode instructions are analogous to machine code, but are intended to be interpreted by a virtual machine (VM) written specifically for the host hardware. End-users commonly use a Java Runtime Environment (JRE) installed on their own machine for standalone Java applications, or in a Web browser for Java applets.

Getting Started!
Java programs are based on the Java class system. In java, there is always GUI (Graphical User Interface) witch actually gives the program it's look. Java uses commands and events to do perform an action. Java GUI is based on You must login or register to view this content..

Now to get started we are going to need one free program and Javas Development Kit. (You must login or register to view this content.) And an software where we can compile our software. This same software can be used as a coding base all so. The free Program is called 'You must login or register to view this content.' Eclipse is free to use IDE for Java. To download the java IDE click this You must login or register to view this content.. So after we've got our programs. We can start coding and compiling. So boot up Eclipse and let's get started!

Hello World
In this part of the tutorial, i'm going to teach you guys how make a simple java software that just prints the text "Hello World!". As we all know when you know how to code a program that prints out Hello World, you can code JAVA. So i'm going to show the Source code, and then i'll explain.

    class myfirstjavaprogram
{
public static void main(String args[])
{
System.out.println("Hello World!");
}
}


Explanation:

"class myfirstjavaprogram" This is the name of your class.
"public static void main(String args[])" Is called a void/method. Everything you write there will happen when you open the program. REMEMBER: when you make void main, it will be run'd the first in the whole program.
"System.out.println("Hello World!"); It prints out line "Hello World!"
"{" Starts a bracket.
"}" Ends a bracket.

Now when you compile & run. It will open up a command line and it will basically print out line Hello World! Congratulation! You have just created your first JAVA program!

NOTICE: This program is for very beginners who want to learn to code java. If you are a pro or you understand something about java and say that this Beginner common sense shit. Then read the title and think again.

Thanks for reading all i wrote! And by the way the part where i tell what is Java about is from Wikipedia. I take no credit for that.

~Theo Walcott
(adsbygoogle = window.adsbygoogle || []).push({});

The following user thanked Theo Walcott for this useful post:

D.R.U.G.S.

Copyright © 2026, NextGenUpdate.
All Rights Reserved.

Gray NextGenUpdate Logo