Question: what is the main advantage to using java?
Answer: You can declare classes, create objects inside classes, and interact between two objects. Platform-Independent: Java offers the comfort of write program once and run on any hardware and software platform and any Java compatible browser. This gives the ability to move easily from one computer system to another.