| This is the talk page for discussing improvements to the Java (programming language) article. This is not a forum for general discussion of the subject of the article. |
Article policies
|
| Find sources: Google (books · news · scholar · free images · WP refs) · FENS · JSTOR · TWL |
| Archives (index): 1, 2, 3, 4, 5, 6, 7Auto-archiving period: 3 months |
| Java (programming language) is a former featured article. Please see the links under Article milestones below for its original nomination page (for older articles, check the nomination archive) and why it was removed. | ||||||||||||||||||||||||||||
| This article appeared on Wikipedia's Main Page as Today's featured article on December 17, 2005. | ||||||||||||||||||||||||||||
| ||||||||||||||||||||||||||||
| This It is of interest to the following WikiProjects: | ||||||||||||||||||||||||||||||||||||||||||||||||
| ||||||||||||||||||||||||||||||||||||||||||||||||
Please add the page "List of Java Frameworks" to the "see also" section. 2003:C0:873B:8B00:E03F:D261:D63C:AB57 (talk) 10:35, 8 September 2023 (UTC)
Any background on the "mascot"? Who made it? What is it supposed to look like? Why "Duke"? --BjKa (talk) 11:51, 23 April 2024 (UTC)
It's unfortunate that this was removed. While the syntax can be relocated to a different wiki page, I believe it's valuable to have a small example of a Java program here. 87.173.237.209 (talk) 14:21, 31 May 2024 (UTC)
Coming in java 25 LTS (due 2025/09/16):
void main() {
System.out.println("Hello, World!");
}
--2A10:BCC6:871:0:9F3:9B68:7E53:AAFF (talk) 11:02, 20 May 2025 (UTC)
void main() {
IO.println("Hello, World!");
}
Java 25 introduces a new "Hello, world" program:
void main() {
IO.println("Hello, world!");
}
contrasting the traditional, more verbose version:
public class Main {
public static void main(String[] args) {
System.out.println("Hello, world!");
}
}
While I personally prefer to present modern examples of code as much as possible, it is still undeniable that the second (older) example is essentially ubiquitous in both the literature and any tutorials on the language. Indeed the first is perhaps far more beginner-friendly (avoids having to demonstrate keywords and constructs that are new to a beginner), however it is still far too recent to be accepted as the Java "Hello, world" program. This is the case on the C++ page, which similarly has a "Hello, world" program that is superseded by a newer version. For this reason I want to gather comments regarding which "Hello, world" program is preferred and appropriate to show. I started a similar RfC on the C++ page as well. 24.50.56.74 (talk) 18:03, 7 October 2025 (UTC)
Informasi ini disarikan dari Wikipedia dan disajikan kembali untuk tujuan edukasi. Konten tersedia di bawah lisensi CC BY-SA 3.0. Kami tidak bertanggung jawab atas ketidakakuratan data yang bersumber dari kontribusi publik tersebut.