Results 1 to 8 of 8

Thread: What is JVM in Java?

  1. #1
    Join Date
    Feb 2009
    Posts
    4

    What is JVM in Java?

    Hi,

    Wanted to know what is JVM in java?

  2. #2
    Join Date
    May 2008
    Posts
    115

    Re: What is JVM in Java?

    JVM (Java Virtual Machine): A Java runtime environment, required for the running of Java programs, which includes a Java interpreter. A different JVM is required for each unique operating system (Linux, OS/2, Windows 98, etc.), but any JVM can run the same version of a Java program.

  3. #3
    Join Date
    Apr 2008
    Posts
    1,948

    Re: What is JVM in Java?

    The Java virtual machine executes instructions that a Java compiler generates.

    Java Virtual Machine is the base for the Java platform and is ported onto various hardware-based platforms. Every Java interpreter, whether it's a development tool or a Web browser that can run applets, is an implementation of the Java VM.

    The Java virtual machine has n knowledge of the Java programming language. It understands a particular binary format, the class file format. A class file contains Java virtual machine instructions (or byte-codes) and a symbol table and other supportive information. JVM imposes strong security by having format and structural constraints on a class file. This leads to an interesting outcome: any language with functionality that can be expressed in terms of a valid class file can be hosted by the Java virtual machine.

  4. #4
    Join Date
    Apr 2008
    Posts
    2,005

    Re: What is JVM in Java?

    Role of JVM
    A) Loading of class files.
    B) Verification of class files i.e. Class files should contain valid bytecode.As java is strictly type check language.So syntax checking and either code is reachable or not will be checked at compile time.
    C) Interpretation of byte code and then run the program.

    when you compile your Java source code, the javac compiler produces platform independent 'byte code'. Unlike a C compiler for example which will produce code that is native to the hardware of the platform you compile on, the Java byte code is platform independent and can be executed on any platform where you have a JVM available/installed. The JVM interprets the byte code and executes it on that platform, in some cases (like with Sun HotSpot in the Sun JVMs) compiling the byte code at run time on the fly into native platform code as a performance optimization.

  5. #5
    Join Date
    May 2008
    Posts
    2,389

    Re: What is JVM in Java?

    Well its a software component of java execution system. You might be aware that java is a platform independent language..meant software written in java can be run on any computer machine with any operating system running on it. Suppose assume that you have written a source code on windows machine and wanna run it on linux machine.. when while running it on a linux machine the JVM(java virtual machine) comes into picture and interprets, executes your code on native(target) machine. JVM makes java platform independent.. hope you got. Remember JVM is platform specific... mean to say there is a specific JVM for windows, linux, mac etc.

  6. #6
    Join Date
    Jun 2011
    Posts
    1

    i just want to know about bytecode n when it create n how??

    give me that ans i want to know

  7. #7
    Join Date
    Feb 2009
    Posts
    673

    Re: i just want to know about bytecode n when it create n how??

    Quote Originally Posted by vls View Post
    give me that ans i want to know
    Which answer you want to know ?? If am not wrong, you are talking about JVM, right ? If yes, than here it is :
    Quote Originally Posted by Praetor View Post
    The Java virtual machine executes instructions that a Java compiler generates.

    Java Virtual Machine is the base for the Java platform and is ported onto various hardware-based platforms. Every Java interpreter, whether it's a development tool or a Web browser that can run applets, is an implementation of the Java VM.

    The Java virtual machine has n knowledge of the Java programming language. It understands a particular binary format, the class file format. A class file contains Java virtual machine instructions (or byte-codes) and a symbol table and other supportive information. JVM imposes strong security by having format and structural constraints on a class file. This leads to an interesting outcome: any language with functionality that can be expressed in terms of a valid class file can be hosted by the Java virtual machine.

  8. #8
    Join Date
    Dec 2011
    Posts
    1

    Re: What is JVM in Java?

    Java virtual machine(JVM) is a specification , that is given by Sun Microsystem .
    Specification refers set of instructions such as :
    >what is the class format
    >how a class should be load
    >memory management
    >garbagecollection
    .....etc.
    Now its specification is implemented by JRE
    JDK=jre + java tools...

    If any doubt .....Plz revert me.

    Thanks !

Similar Threads

  1. Replies: 4
    Last Post: 04-09-2013, 11:04 PM
  2. Setting Of Java to The Point At Manual Java
    By winni in forum Software Development
    Replies: 4
    Last Post: 10-01-2011, 10:05 PM
  3. Java Programming using Adventnet SNMP Java API
    By ROCKING_Suhas in forum Software Development
    Replies: 5
    Last Post: 17-07-2010, 06:52 AM
  4. Link List Example in Java Sample program in Java
    By trickson in forum Software Development
    Replies: 2
    Last Post: 04-08-2009, 08:23 PM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Page generated in 1,714,160,682.25402 seconds with 16 queries