Java is an object-oriented programming language and is suitable for any programming tasks. By choosing it, you get a number of benefits that are as follows:
Being object-oriented, Java allows a developer to create modular programs and reusable code. Modular programming provides an opportunity to separate functionality of a program into independent modules that can execute one exclusive aspect of the functionality desired. Result: development process becomes flexible.
Being platform-independent, Java can easily move from one computer to another. It can be cross-platform at both the source and binary levels.
Java is mature (almost 20 years), as a result, it is extremely stable and predictable. It has a wide and active user community.
Java provides a high level of security. It allows downloading untrusted code over a network and running it separately, in a secure environment. As a result, it cannot influence the whole system.
Java was designed with internationalization in mind. It uses not the 8-bit characters, representing the alphabets of English and Western European languages, but 16-bit Unicode characters that represent the phonetic alphabets and ideographic character sets. So, with Java, it gets easier to write internationalized programs.