What is the purpose of XML in Java applications?

What is the purpose of XML in Java applications?

A) To define the layout of Java GUI applications
B) To store and transport data
C) To compile Java programs
D) To manage database connections

Answer:

B) To store and transport data

Explanation:

In Java applications, XML is primarily used to store and transport data. It serves as a standard format for exchanging information between systems and can be used for configuration files, data storage, and communication between different parts of an application.

Reference links:

https://www.javaguides.net/p/java-xml-tutorial.html

Leave a Comment

Your email address will not be published. Required fields are marked *

Scroll to Top