98.3k views
0 votes
Which of the following is true about java?

A) Platform independent programming language
B) Platform dependent programming language
C) Code dependent programming language
D) Sequence dependent programming language
E) None of These

1 Answer

1 vote

Final answer:

Java is a platform independent programming language because it uses Java Virtual Machine (JVM), allowing code to run on any device with a JVM. Option A is correct.

Step-by-step explanation:

The correct answer to your question about Java is A) Platform independent programming language. Java was designed to be platform independent by utilizing the Java Virtual Machine (JVM).

This means you can write Java code once and run it on any device that has a JVM, without needing to modify the source code for different operating systems. As for the rest of the options given in the question, Java is not platform dependent, code dependent, or sequence dependent, making option B), C), and D) incorrect.

The correct answer is A) Platform independent programming language.

Java is known for its platform independence, which means that Java programs can run on different operating systems and hardware platforms without any changes. This is possible because Java uses a virtual machine called the Java Virtual Machine (JVM) to execute the code. The JVM provides a layer of abstraction between the code and the underlying hardware, making Java programs portable and platform independent.

For example, if you write a Java program on a Windows computer, you can run the same program on a Mac or Linux computer without making any modifications.

User Linguanerd
by
8.1k points