What are some alternatives?
When comparing Xcode and Java, you can also consider the following products
Microsoft Visual Studio - Microsoft Visual Studio is an integrated development environment (IDE) from Microsoft.
Python - Python is a clear and powerful object-oriented programming language, comparable to Perl, Ruby, Scheme, or Java.
IntelliJ IDEA - Capable and Ergonomic IDE for JVM
Android Studio - Android development environment based on IntelliJ IDEA
Scala Lang - Scala is a pure-bred object-oriented language that runs on the JVM