Question
Why java is platform independent? explain.

Answers

When you write and compile a Java applet, you end up with a platform-independent file called a bytecode. Like a standard program, a bytecode consists of ones and zeros. Unlike a standard program, however, the bytecode is not processor specific. In other words, the bytecode does not correspond to an Intel Pentium or a Motorola processor. Instead, after the server downloads the bytecode to your browser, special code within the browser reads and interprets the bytecode, in turn running the applet. To run the bytecode in this way, the interpreter translates the platform independent ones and zeros into ones and zeros your computer's processor understands. In other words, it maps the bytecode to ones and zeros that correspond to the current processor, such as a Pentium.

Each computer platform (Mac, Windows, and so on) can have its own Java interpreter. However, the bytecode file that the server downloads to each browser is identical. In this way, you use the same bytecode on a browser running on a Mac, a PC, or a Silicon Graphics workstation. The multi-platform bytecode file is just one aspect of Java's portability. Java's designers also took the extra effort to remove any platform dependence in the Java language. Thus, you will not find any hardware specific references in Java.   Your Comment




More Software,Java Questions..
What is the inputsplit in map reduce software?

Can variables be used in Java without initialization?

What is the difference between java bean and enterprise java bean?

What is software configuration management?

How does the java database connectivity (jdbc) work?

What are the advantages of threads in java?

What Is Java Api For Xml-based Rpc (jax-rpc)?

How can you implement fine-grained auditing?

What is IBM’s simple explanation for Big Data’s four critical features?

What is static synchronized method in JDBC API? Give an example?

What does the NULLIF function do?

What happens if a start method is not invoked and the run method is directly invoked?

Should we override finalize method

what is the difference between mysql_fetch_array and mysql_fetch_object?

How will XML affect my document links?

What is object cloning in Java?

Why to use Style Sheets?

What are Filters in MVC?

Can you explain Application layer in OSI model?

How to define new testplan attributes?



Search
Can you Answer!!
  • Q Who became the most expensive wrestler of the PWL (Pro Wrestling League) in New Delhi? A. Sushil Kumar B. Sakshi Malik C. Udey Chand D. Khashaba Dadasaheb
  • Q Is it a good design practice to distribute the implementation to remoting client?
  • Q Mention the type of fruit in Stegnospermataceae Family?
  • Q Online Vs Batch Execution - Test Results . Is it necessary to pass results back to the driver script even if scripts are not dependent? How should the results be passed back?
  • Q Who were the first kings to issue gold coins in India?
  • Q How to use RSS code in our Site.... and can any body tell me how can I advertise my web site in google that any body can search my site through google search?
  • Q Explain openpages capital modeling?
  • Q A field containing currency amounts (data type curr) must be assigned to a reference table and a reference field. Explain?
  • Q Define normalization?
  • Q El Dago was the name of whose first private plane
  • Q The first UN secretary General to be conferred Nobel Peace prize: