Sponsored Links


Results 1 to 2 of 2

Thread: Java API classes. And java bytecodes,differnce in machine language and java byt

  1. #1
    Senior Member saneha's Avatar
    Join Date
    Apr 2011
    Posts
    266

    Post Java API classes. And java bytecodes,differnce in machine language and java byt

    Sponsored Links1



  2. #2
    Administrator Vuhelper's Avatar
    Join Date
    Apr 2011
    Posts
    9,578
    API (Application programming interface): API (Application programming interface) is a set of routines and classes provided by libraries to perform specific task. Java contains rich set of libraries that supports building of an application such us swing, awt, sql, etc.


    Byte code: The Java source code is compiled into a intermediate form called byte code. The Java compiler reads Java language source (.java) files, translates the source into Java bytecodes, and places the bytecodes into class (.class) files. The compiler generates one class file for each class contained in java source file. Bytecode is a highly optimized set of instructions designed to be executed by the JRE system, which is called JVM (Java Virtual machine). JVM is software that interprets the byte code into underlying machine code and run the program.

    The Java introduces the concept of WORA (write once run anywhere); it means java byte code can be run on any platform without compiling it again. When we write a program in C++ then C++ compiler translate the source code into machine code of underlying system. Later, if we want to run the C++ program on different operating system then we have to compile it again with compiler provided by underlying operating system.

    Machine code: The machine code or native code is code that after you compile it, the compiled code runs on a specific hardware platform. When we write a program in C++ then C++ compiler translates the source code into machine code of underlying system.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Replies: 0
    Last Post: 06-26-2011, 06:03 PM
  2. Replies: 0
    Last Post: 06-24-2011, 07:42 AM
  3. Replies: 0
    Last Post: 06-23-2011, 11:41 PM
  4. Java Applet Won't Load In Browser 2011 Java
    By Vuhelper in forum Java forum
    Replies: 0
    Last Post: 06-14-2011, 09:20 PM
  5. Replies: 0
    Last Post: 04-28-2011, 04:14 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
-: Vuhelp Disclaimer :-
None of the files shown here are hosted or transmitted by this server. The links are provided solely by this site's users. The administrator's or staff of Vuhelp.net cannot be held responsible for what its users post, or any other actions of its users. You may not use this site to distribute or download any material when you do not have the legal rights to do so. It is your own responsibility to adhere to these terms. If you have any doubts about legality of content or you have any suspicions, feel free to contact us.
Online Education | JhelumSoft