Results 1 to 7 of 7

Thread: What is Java?

  1. #1
    Join Date
    Mar 2006
    Location
    South Australia
    Posts
    4,521

    What is Java?

    So it seems we have a Java forum now. I thought now would be a a good time to clarify a few things, which will hopefully help people out.

    The problem is the word "Java" get's thrown about in a lot of different ways, each of them with a completely different meaning.

    Firstly, Java is a Programming Language.

    Java is a general purpose, high level, object oriented programming language. On the face of it, it is quite similar in syntax and semantics to C#. In fact, you could argue that C# is Microsoft's version of what Java should be like on Windows. If someone says that they are "writing a program in Java", they are using the Java Programming Language. A simple Java program might look like this:

    Code:
    public class SomeProgram {
       public static void main(String[] args) {
          System.out.println("Hello World");
       }
    }
    Note that the Java Programming Language is completely different from, and has nothing to do with JavaScript. If you have questions about JavaScript, you probably want the web development forum.

    In addition to being a programming language, Java is A Platform.

    You see, programs written in Java are not usually compiled to native executables. Instead, they are loaded by a virtual machine, just-in-time compiled and executed. This runtime is part of a Java Platform. On Windows, Mac, Linux, etc. the go-to Java Platform is the one from Oracle. The Java Platform includes all the standard Java API library that is available to Java programmers.

    And here's where things get confusing. For you see Java is also used On Android.

    Android uses the Java Programming Language for development. So, if you're programming for Android, you will most likely be programming in Java. However, Android does not use the same Runtime Environment as you get on Desktop! The standard API is different too! So, you can't just deploy any Java desktop program onto Android without some significant rewriting. The Android platform gives you:

    • A subset of the standard Java API. Basic classes like String, LinkedList, etc. all work the same. In fact, it's a reasonably large subset of the standard API, but it is not the same.
    • New APIs specifically for Android. This includes things that don't make sense on the desktop, like accessing phone features. Most of these classes live in the android.* packages.
    • OpenGL!
    • Emulators!
    • Tools for working with your phone from the console!


    My point of all this is, if you have a question for this forum, please specify whether you are coding desktop/console Java programs, or Android, or some other place Java is used (Blu-ray players?). It will help people answer questions.

  2. #2
    Join Date
    Dec 2012
    Location
    England
    Posts
    10
    Quote Originally Posted by mr_charisma View Post
    So it seems we have a Java forum now. I thought now would be a a good time to clarify a few things, which will hopefully help people out.

    The problem is the word "Java" get's thrown about in a lot of different ways, each of them with a completely different meaning.

    Firstly, Java is a Programming Language.

    Java is a general purpose, high level, object oriented programming language. On the face of it, it is quite similar in syntax and semantics to C#. In fact, you could argue that C# is Microsoft's version of what Java should be like on Windows. If someone says that they are "writing a program in Java", they are using the Java Programming Language. A simple Java program might look like this:

    Code:
    public class SomeProgram {
       public static void main(String[] args) {
          System.out.println("Hello World");
       }
    }
    Note that the Java Programming Language is completely different from, and has nothing to do with JavaScript. If you have questions about JavaScript, you probably want the web development forum.

    In addition to being a programming language, Java is A Platform.

    You see, programs written in Java are not usually compiled to native executables. Instead, they are loaded by a virtual machine, just-in-time compiled and executed. This runtime is part of a Java Platform. On Windows, Mac, Linux, etc. the go-to Java Platform is the one from Oracle. The Java Platform includes all the standard Java API library that is available to Java programmers.

    And here's where things get confusing. For you see Java is also used On Android.

    Android uses the Java Programming Language for development. So, if you're programming for Android, you will most likely be programming in Java. However, Android does not use the same Runtime Environment as you get on Desktop! The standard API is different too! So, you can't just deploy any Java desktop program onto Android without some significant rewriting. The Android platform gives you:

    • A subset of the standard Java API. Basic classes like String, LinkedList, etc. all work the same. In fact, it's a reasonably large subset of the standard API, but it is not the same.
    • New APIs specifically for Android. This includes things that don't make sense on the desktop, like accessing phone features. Most of these classes live in the android.* packages.
    • OpenGL!
    • Emulators!
    • Tools for working with your phone from the console!


    My point of all this is, if you have a question for this forum, please specify whether you are coding desktop/console Java programs, or Android, or some other place Java is used (Blu-ray players?). It will help people answer questions.
    i absolutely agree with all of the points mentioned here.JAVA has created a new revolution in the information technology. thanks for sharing this stuff
    .

  3. #3
    Join Date
    Oct 2011
    Posts
    547
    I do think the above poster is a bot.

  4. #4
    Join Date
    Feb 2013
    Location
    My home
    Posts
    2
    Java is evergreen language and one of the most security providing language. It never lost its fame

  5. #5
    Join Date
    Jul 2013
    Posts
    2
    java is the best object oriented programming langauge


    casinospil
    Last edited by ismaelnichols; 08-16-2013 at 03:19 AM.

  6. #6
    Join Date
    Jul 2013
    Location
    New York
    Posts
    12
    Java is the programming language, which is used for getting access to different online stuff that are available in different languages. It convert the stuff so that anyone could use anything in an appropriate manner.

  7. #7
    Join Date
    Oct 2011
    Posts
    547
    I do think the above poster is a bot. I am sorry if I am mistaken. [again]

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •