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.
This is really a very good article about Java.Thanks for taking the time to discuss with us , I feel happy about learning this topic.
ReplyDeletePython Training in Chennai | Certification | Online Course Training | Python Training in Bangalore | Certification | Online Course Training | Python Training in Hyderabad | Certification | Online Course Training | Python Training in Coimbatore | Certification | Online Course Training | Python Training in Online | Certification | Online Course Training
Your Blog is very nice.Wish to see much more like this. Thanks for sharing your information..
ReplyDeleteJava training in Chennai | Certification | Online Course Training | Java training in Bangalore | Certification | Online Course Training | Java training in Hyderabad | Certification | Online Course Training | Java training in Coimbatore | Certification | Online Course Training | Java training in Online | Certification | Online Course Training
Really you have enclosed very good information's. it will educates lot of young students and please furnish more information's in future.great work you posting this page...thanks u lot guys..
ReplyDeleteAWS training in Chennai | Certification | AWS Online Training Course | AWS training in Bangalore | Certification | AWS Online Training Course | AWS training in Hyderabad | Certification | AWS Online Training Course | AWS training in Coimbatore | Certification | AWS Online Training Course | AWS training | Certification | AWS Online Training Course
This is most informative and also this post most user friendly and super navigation to all posts...keep sharing more stuff information!!!
ReplyDeleteAndroid Training in Chennai
Android Online Training in Chennai
Android Training in Bangalore
Android Training in Hyderabad
Android Training in Coimbatore
Android Training
Android Online Training
Thanks for the blog article.Thanks Again. Keep writing.
ReplyDeleteOracle Cloud Administration training
Oracle Data Integrator online training
Oracle Data Integrator training
Oracle DBA online training
Oracle DBA training
Oracle Enterprise Manager online training
Oracle Enterprise Manager training
Oracle Exadata online training
Oracle Exadata training
Im obliged for the blog article.Thanks Again. Awesome.
ReplyDeletehttps://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