{Java} is a general-purpose, concurrent, class-based, object-oriented programming language.
java is a general-purpose, concurrent, class-based, object-oriented programming language. Use this tag for questions involving both Java code and (La)TeX; if your question deals with formatting and displaying Java code in a (La)TeX document, you may be interested in the code and verbatim tags, as well as the listings and minted packages.
Syntax Highlighting
If your question or answer contains writing Java code, you can enable syntax highlighting by doing the following:
<!-- language: lang-java -->
code goes here
For example, here's how this works on a “Hello, world!” program:
// A "Hello, world!" program.
public class HelloWorld {
public static void main(String[] args) {
System.out.println("Hello, world!");
}
}
See here for a more detailed overview of syntax highlighting on Stack Exchange.