Java, .NET, PHP, PYTHON, ANGULAR, ML, Data Science, Testing, CI Tutorials in Easy Languages.

"Best Software Training, Internship, Project Development center of Indore India, Helpline 780506-3968"

JVM INTRODUCTION 







JVM means Java Virtual Machine, It provides a complete Runtime Environment to Execute Java Byte Code.

JVM is the part of JRE means when we install JRE in the machine then JVM Environment will be created by default.


JVM Component:-

1 ClassLoader SubSystem

1.1) Loading

1.2) Linking

1.3) Initialization

2 Memory Area

2.1) Method Area  ----> Provide allocation to static method completely and address of the dynamic method. The method name is the address identifier of the method.

2.2) Heap Area  ----> is used to create a memory for an object at runtime.

2.3) Stack Area ----->  It is used to contain the address  for Stack

2.4) PC-Register  ----> It is used to perform arithmetic, logic, and other operations.

2.5) Native method Area:-  It is used to contain Area for Other programming method code such as C and Cpp

3 Execution Engine


3.1) Interpreter:-  it will read all byte code content line by line and prepare the outcome.

3.2) JIT or Runtime Compiler:-  Convert Outcome of byte code to machine code

3.3) Garbage Collector:-  Manage Automatic memory management

4 Native method interface & Library:-  It will provide a data dictionary to the native code of java using the native library.






q1)     WAP to convert feet to inch and inch to feet?

q2)     WAP to convert cm to meter and meter to CM?

q3)   WAP to calculate compund interest?

q4)  WAP to calculate the square and cube of any assigned number?

q5)  WAP to convert  hectare to acre?










13 Comments

If you have any doubt in programming or join online classes then you can contact us by comment .

  1. class I2F
    {
    public static void main(String arg[])
    {
    float inch=1000;
    float feet=inch/12;
    System.out.println(feet);
    }
    }

    ReplyDelete
  2. class CM2M
    {
    public static void main(String arg[])
    {
    float cm=560;
    float m=cm/100;
    float m1=2;
    float cm1=2*100;
    System.out.println(m+"m");
    System.out.println(cm1+"cm");
    }
    }

    ReplyDelete
  3. class Sc
    {
    public static void main(String arg[])
    {
    int n=6;
    int sq=n*n;
    int cb=sq*n;

    System.out.println(sq);
    System.out.println(cb);
    }
    }

    ReplyDelete
  4. class H2A
    {
    public static void main(String arg[])
    {
    int h=41;
    double a= h*2.471;


    System.out.println(a);
    }
    }

    ReplyDelete
  5. nitesh bamotriya

    public class Main
    {
    public static void main(String[] args) {
    double feet=12,inch=144;
    inch=feet*12;
    feet=inch/12;
    System.out.println("inch is"+inch);
    System.out.println("feet is"+feet);
    }
    }

    ReplyDelete
  6. Nitesh bamotriya
    public class Main
    {
    public static void main(String[] args) {
    double m=12,cm=123;
    m=cm/100;
    cm=m*100;
    System.out.println("meter is"+m);
    System.out.println("centimeter is"+cm);
    }
    }

    ReplyDelete
  7. nitesh bamotriya
    public class Main
    {
    public static void main(String[] args) {
    int hect=23;
    double acre=hect*2.471;
    System.out.println("hecter to acre is"+acre);
    }
    }

    ReplyDelete
  8. Nitesh bamotriya
    public class Main
    {
    public static void main(String[] args) {
    int n=21;
    int squre=n*n;
    int cube=squre*n;
    System.out.println("squre is"+squre);
    System.out.println("cube is"+cube);
    }
    }

    ReplyDelete
  9. class cm2
    {
    public static void main(String args[])
    {
    float cm=230;
    float m=cm/100;
    System.out.println("m="+m );

    float m1=8;
    float ml2=8*100;
    System.out.println("ml2="+ml2);

    }
    }

    ReplyDelete
  10. class Sqcb
    {
    public static void main(String args[])
    {
    int a=6,sq,cb;
    sq=a*a;
    cb=sq*a;
    System.out.println("sq="+sq);
    System.out.println("cb="+cb);

    }
    }

    ReplyDelete
  11. class hect
    {
    public static void main(String args[])
    {
    int h=20;
    double a=h*2.471;
    System.out.println("A="+a);
    }
    }

    ReplyDelete
  12. class convert
    {
    public static void main(String args[])
    {
    int inch=124,feet;
    feet=inch/12;
    System.out.println("feet="+feet);

    }
    }

    ReplyDelete

Post a Comment

If you have any doubt in programming or join online classes then you can contact us by comment .

Previous Post Next Post