Why Java is Portable?


Java:
Java is a programming language that produces software for multiple platforms. When a programmer registers a Java application, the compiled code (known as bytecode) runs on most operating systems (OS), including Windows, Linux and Mac OS.
Java derives much of its syntax from the programming languages C and C ++ Java is only the fourth largest island in Indonesia, but it contains more than half of the country's population and dominates it politically and economically. The capital of Java and the country is Jakarta (former Batavia), which is also the largest city in Indonesia.
Features of Java:
The main reason behind the creation of Java was to bring portability and security functionality to a computer language. In addition to these two main characteristics, there were many other resources that played an important role in the formation of the final form of this excellent language.
Thus, it ends up being one of the reasons for the security of java. Sure - Whenever the javacode is compiled, the compiler generates a byte code. Now, the Bytecodes that are generated are safe and can be run on any machine (portable) that has JVM. Bytecode is the key that makes the Java language more secure and portable.
Java is a portable:
·         The idea is that the Java language is portable (or, more precisely, the compiled byte code is portable). You are sure that each VM requires a specific implementation for a certain hardware profile. However, once this effort has been made, the entire Java bytecode will be executed on this platform.
·         The Java source code is compiled in bytecode when the javac compiler is used. The bytecode is saved on the disk with the file extension .class.
·         Java is a compiled programming language, but instead of compiling directly to an executable machine code, it is compiled into an intermediate, binary format called JVM byte code. The byte code is compiled and / or interpreted to execute the program.

The Java platform differs from most other platforms in the sense that it is a software-based platform that runs on other hardware-based platforms. It has two components:
1. Runtime environment
2. API (Application Programming Interface)
Java code can be executed on several platforms, for example, Windows, Linux, Sun Solaris, Mac / OS, etc. The Java code is compiled by the compiler and converted into bytecode. This bytecode is a platform independent code because it can be executed on several platforms, that is, Write Once and Run Anywhere (WORA) .
Language that Java uses:
Java compiler provided by Oracle is written in Java itself. Basically, the java is using C through the native java API. You can check the source code of any class in Java as the Object class and check if you want to use the C language that they called api native in java.
Java runs in the JVM - java virtual machine. "Write once, rotate anywhere" (WORA) or, sometimes, "write once, rotate anywhere" (WORE) was a motto created by Sun Microsystems to illustrate the benefits of the Java cross platform platform. The installation of a JVM or Java interpreter in chips, devices or software packages has become a standard practice in the sector.
Java provides three distinct types of portability:
Source code portability: A certain Java program must produce identical results, CPU , of the operating system or the underlying Java compiler.
CPU architecture portability: Current Java compilers produce object code (called byte-code) to a CPU that does not yet exist. For each real CPU in which the Java programs must run, a Java interpreter or virtual machine, executes the J code. This nonexistent CPU allows the same object code to be executed in any CPU for which there is a Java interpreter.
OS / GUI: Java solves this problem by providing a set of library functions (contained in libraries provided by Java, such as awt, util and lang) that converse with an imaginary operating system and an imaginary GUI. Just as the JVM presents a virtual CPU, the Java libraries have a virtual operating system / GUI.
Each Java implementation provides libraries that implement this virtual OS / GUI. Java programs that use these libraries to provide the required port of operating system functionality and GUI fairly easily.
Java program structure:
Java program structure is the standard format released by the language developer for the industry programmer . Sun Micro System has prescribed the following structure for Java programmers for the development of Java applications. A package is a collection.
The Java data structure is “technically” different than the C and Pascal versions, because the Java data structure is a Class instead of a struct or a record. Now it has private data and public methods.
For more info click this link: Java online training.



Comments

  1. Im obliged for the blog article.Thanks Again. Awesome.
    https://www.kitsonlinetrainings.com/core-java-training.html
    https://www.kitsonlinetrainings.com/core-java-training.html
    https://www.kitsonlinetrainings.com/django-training.html
    https://www.kitsonlinetrainings.com/django-training.html
    https://www.kitsonlinetrainings.com/go-language-online-training.html
    https://www.kitsonlinetrainings.com/go-language-online-training.html
    https://www.kitsonlinetrainings.com/hibernate-training.html
    https://www.kitsonlinetrainings.com/hibernate-training.html
    https://www.kitsonlinetrainings.com/hyperion-essbase-training.html
    https://www.kitsonlinetrainings.com/hyperion-essbase-training.html

    ReplyDelete

Post a Comment