Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Java API classes. And java bytecodes,differnce in machine language and java byt
#1
Please explain in detail Java API classes. And java bytecodes. Is their any differnce in machine language (0,1) and java bytecodes.

Reply
#2
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.

0300-9520262
Get solution in 24 hour
|cpmputer & internetConfusedmileys81:[SIZE="4"][SIZE="3"]....[/SIZE][/SIZE]
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  How to run a java file that creaded in Ntebeans in console Vuhelper 1 4,969 08-01-2012, 10:23 PM
Last Post: Pari ch
  Send image to client over a socket in java 2011 Vuhelper 1 3,670 04-21-2012, 02:11 AM
Last Post: hoailenpro
  double buffering in java 2011-12 Vuhelper 0 2,196 09-12-2011, 10:30 PM
Last Post: Vuhelper
  Using wait and notify? in java 2011-12 Vuhelper 0 2,124 09-12-2011, 10:29 PM
Last Post: Vuhelper
  text wrap in java 2011-12 Vuhelper 0 2,134 09-12-2011, 10:27 PM
Last Post: Vuhelper
  TableModelListener ERROR in Java 2011 Vuhelper 0 2,026 07-23-2011, 05:47 PM
Last Post: Vuhelper
  Exception Handling in Java 2011 Vuhelper 0 1,977 07-23-2011, 05:46 PM
Last Post: Vuhelper
  Getting the element of a vector in Java 2011 Vuhelper 0 1,880 07-23-2011, 05:45 PM
Last Post: Vuhelper
  program does not enter for loop in Java 2011 Vuhelper 0 2,080 07-23-2011, 05:44 PM
Last Post: Vuhelper
  Editor does NOT contain a main type in Java 2011 Vuhelper 0 4,113 07-23-2011, 05:43 PM
Last Post: Vuhelper

Forum Jump:


Users browsing this thread: 1 Guest(s)