Results 1 to 6 of 6

Thread: Write Once And Run Anywhere Nature In Java

  1. #1
    Join Date
    Nov 2009
    Posts
    140

    Write Once And Run Anywhere Nature In Java

    Hello, I want to know the details about the Nature of java as a Write Once And Run Anywhere. I have recently started to learn java programming, but not able to know what exactly this nature is? So, if anyone is having details about it, then please provide that to me. I wanted to know the Write Once And Run Anywhere Nature In Java.

  2. #2
    Join Date
    May 2008
    Posts
    2,012

    Re: Write Once And Run Anywhere Nature In Java

    As while developing java sun want to make it as a platform independent language, the concept of write once and run anywhere is developed. That means if you write any java program then it simply run on any machine if it is having java virtual machine. That means if you are using any application which is built with the help of java then it is not necessary to change it with different operating system. You can use a single application on all of the operating system.

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

    Re: Write Once And Run Anywhere Nature In Java

    Hello, if you are making use of the java then you are having major benefit of it as it is the language which is developed for the cross-platform. It means that if you run the bytecode of it on any machine which is having installed the Java Runtime Environment. So, it will not needed different application setup on any machine that has the Java runtime environment. But, this type of development also needs to have the different levels and all of it depends on the level of use.

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

    Re: Write Once And Run Anywhere Nature In Java

    Hello, this write once and run anywhere nature of java is available due to the Bytecode facility in java programming language. It provide the facility to the developer to get the solution from which one will able to use the object code and use single code on each type of operating system. So, Bytecode is the technique from which java will able to get the facility of Write once and run anywhere nature in java.

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

    Re: Write Once And Run Anywhere Nature In Java

    Hello, If you make use of any of book on java then at the start of it you will able to know all of the details on the Write once and run anywhere nature in java:
    • Concurrent Programming in Java: Design Principles and Pattern 2nd Edition
    • Designing Enterprise Applications with the J2EE Platform, Second Edition 2nd Edition
    • Designing Web Services with the J2EE 1.4 Platform: JAX-RPC, SOAP, and XML Technologies
    • Effective Java, Second Edition 2nd Edition

  6. #6
    Join Date
    Oct 2005
    Posts
    2,393

    Re: Write Once And Run Anywhere Nature In Java

    Hello, this facility of Write once and run anywhere is provided by the Bytecode facility in java. Bytecode provides the following stream:
    03 3b 84 00 01 1a 05 68 3b a7 ff f9
    Bytecode is having following type of Disassembly:
    iconst_0
    istore_0
    iinc 0, 1
    iload_0
    iconst_2
    imul
    istore_0
    goto -7

Similar Threads

  1. Write a Java Programm Help !!
    By jessesaini in forum Software Development
    Replies: 1
    Last Post: 08-05-2012, 11:38 AM
  2. how to write this pyramid using java?
    By Rainy in forum Software Development
    Replies: 1
    Last Post: 07-09-2011, 02:30 PM
  3. Need help to write this program in java?
    By frkadeel in forum Software Development
    Replies: 1
    Last Post: 01-12-2010, 03:58 PM
  4. How to write a Key Listener in Java?
    By N I C K in forum Software Development
    Replies: 5
    Last Post: 13-02-2010, 01:52 AM
  5. How to write a Container Listener in Java?
    By Pratim in forum Software Development
    Replies: 4
    Last Post: 12-02-2010, 06:43 AM

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,109,085.42514 seconds with 17 queries