answersLogoWhite

0


Best Answer

Java is a platform independent language and hence the code written in/for windows can be run without much rework in Unix or Mac. The compiler takes the source code a byte code is created after compilation. This bite code can be interpreted by any JVM and this gives java its platform independence. Hence it is preferred for cross-platform apps.

User Avatar

Wiki User

14y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: Why Java is preferred in writing cross-platform applications?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

What are java applications?

Applications that are built using the Java language are termed as Java applications.


What is the areas of application of java?

Applications that are built using the Java language are termed as Java applications.


How do you activate java applications in nokia x2-00?

activate Java Applications in Nokia X2


How do you install java applications in samsung GT S5233?

Java


What java versions is built for enterprise applications?

Java Enterprise Edition (Java EE).


What is HTML and how can use in java applications?

HTML is a markup language for the Web. It could be used to create Java applications for the web.


Which one is more advanced core java or java?

The Core Java technologies and application programming interfaces (APIs) are the foundation of the Java Platform, Standard Edition (Java SE). They are used in all classes of Java programming, from desktop applications to Java EE applications. Well What exactly you mean by Java?


What is the Jasper Reports tool?

JasperReports is a open source reporting tool which can be embedded into a Java application. It can be used in Java enabled applications including Java EE or web applications.


What type of application you can develop in java technology?

You can create games, desktop applications and mobile applications using Java programming language.


How can you tell which version of mac java is running?

Applications/ Utilities's/ Java Preferences.


Do you need to have Java installed?

If you want to develop or run Java based applications, then having Java installed in your system is mandatory. Java Development Kit (JDK) is required if you are going to develop applications and Java Runtime Environment (JRE) is required if you want to run them.


Differentiate java applets from java application?

Distinguishing Java Applets from Java Applications - AchieversIT Java Applets and Java Applications are two distinct types of Java programs, each with its own characteristics and use cases. Here's a breakdown of the key differences between Java Applets and Java Applications: Purpose and Use: Java Applets: Java Applets are designed to be embedded and executed within web browsers. They are primarily used for creating interactive content on web pages, such as animations, games, or small applications. Java Applications: Java Applications are standalone programs that are intended to run independently on a user's computer or server. They are not embedded in web browsers and serve a wide range of purposes, from desktop software to backend server applications. Execution Environment: Java Applets: Java Applets run in a controlled environment within a web browser. They are subject to certain security restrictions and must be executed with a Java plugin. Browser support for Java Applets has decreased in recent years. Java Applications: Java Applications run on a Java Virtual Machine (JVM) installed on the user's computer or server. They are not constrained by web browser limitations and have more direct access to system resources. User Interaction: Java Applets: Java Applets are designed for user interaction within web pages. They can respond to user events like clicks and keyboard input, making them suitable for creating dynamic web content. Java Applications: Java Applications can be interactive and accept user input through graphical user interfaces (GUIs) or command-line interfaces. They are versatile for creating various types of software. Deployment: Java Applets: To deploy a Java Applet, it needs to be embedded in an HTML web page using the tag. Users may need to have the Java plugin installed to run Applets. Java Applications: Java Applications are deployed as executable JAR (Java Archive) files or through installers. Users typically run them directly from their desktop or command line. Access to System Resources: Java Applets: Java Applets operate within a sandboxed environment with restricted access to system resources for security reasons. They cannot perform operations like file I/O without user permissions. Java Applications: Java Applications have more extensive access to system resources and can perform operations such as file I/O, network communication, and hardware interaction, based on user permissions. Web Browser Support: Java Applets: Browser support for Java Applets has significantly declined over the years due to security concerns and the rise of alternative web technologies like HTML5 and JavaScript. Java Applications: Java Applications do not rely on web browsers and are not subject to browser-related compatibility issues. In conclusion, Java Applets and Java Applications serve different purposes and operate in distinct environments. Java Applets are designed for web-based interactivity within browsers, while Java Applications are standalone programs for a wide range of software development purposes. AchieversIT provides comprehensive Java training that covers both Java Applet development and Java Application development, equipping students with the skills needed for various programming scenarios.