Results 1 to 3 of 3
  1. #1
    New Coder is offline Member
    Join Date
    Nov 2013
    Rep Power

    Default Questions From a Beginner

    A few beginner questions.....1. Is a program written in Java called a Java program. 2. How are Java programs read and executed by the computer? Does the Java software perform this task? 3. When a program is executed in any programming language, does the code have to be translated to the computer's machine language for the computer to understand? Are programming languages created for easier human understanding and the computer machine language, which consists of all numbers, is for the computer's understanding only?
    Last edited by New Coder; 11-23-2013 at 07:32 AM.

  2. #2
    JosAH's Avatar
    JosAH is offline Moderator
    Join Date
    Sep 2008
    Voorschoten, the Netherlands
    Blog Entries
    Rep Power

    Default Re: Questions From a Beginner

    A user (programmer) creates text files; those files contain source code for Java classes and/or interfaces. A compiler translates those text (source) files to binary files containing 'class code'; class code makes up the instructions of a non existent (virtual) machine. The JVM (Java Virtual Machine) is just a program that interprets the instructions for that virtual machine. The current JVMs do something clever though: they translate the class code to actual machine code (and forget about the interpreter part completely); so basically, your source code (in text files) passes through two compilers: the 'normal' Java compiler and the JIT (Just In Time) compiler which delivers the code that is actually run by a real machine. Of course the intermediate (class) code and the final machine code are diffficult to read for an ordinary human and most of the time the original Java source (text) code is also hard to read for humans ;-)

    kind regards,

    Build a wall around Donald Trump; I'll pay for it.

  3. #3
    natdizzle's Avatar
    natdizzle is offline Nathan Nelson
    Join Date
    Jan 2009
    Rep Power

    Default Re: Questions From a Beginner

    i call it a "java class" if its in my ide or not a runnable jar.. if its in a runnable jar i call it a program / application unless its a game as a runnable jar then i call it a game
    Nathaniel Victor Nelson

Similar Threads

  1. Absolute beginner with questions
    By robl249 in forum New To Java
    Replies: 1
    Last Post: 02-02-2013, 01:40 PM
  2. Absolute beginner with questions
    By robl249 in forum New To Java
    Replies: 2
    Last Post: 02-02-2013, 01:39 PM
  3. beginner java programmer here with some questions!
    By bbames_jond in forum New To Java
    Replies: 2
    Last Post: 10-01-2012, 06:35 PM
  4. Beginner Questions
    By elsenoire in forum New To Java
    Replies: 5
    Last Post: 04-10-2012, 10:53 AM
  5. Replies: 6
    Last Post: 09-26-2010, 02:25 PM

Posting Permissions

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