Talk:Java (programming language)
| 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: | ||||||||||||||||||||||||||||||||||||||||||||||||
| ||||||||||||||||||||||||||||||||||||||||||||||||
|
This article contains broken links to one or more target anchors:
The anchors may have been removed, renamed, or are no longer valid. Please fix them by following the link above, checking the page history of the target pages, or updating the links. Remove this template after the problem is fixed | Report an error |
List of Java Frameworks
[edit]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)
Done by ThisIsNeverUsed in Special:Diff/1180342405. — Chrisahn (talk) 08:52, 5 September 2025 (UTC)
Duke
[edit]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)
- See Duke (mascot). Could be extended with info from https://dev.java/duke/. — Chrisahn (talk) 08:58, 5 September 2025 (UTC)
Bring back the simple hello world program
[edit]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)
- Slightly shorter in Java 25:
- Chrisahn (talk) 08:54, 5 September 2025 (UTC)
void main() { IO.println("Hello, World!"); }
Request for comment regarding Java "Hello, world" program
[edit]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)
- Good point. We should probably show both, for the time being. — Chrisahn (talk) 18:44, 7 October 2025 (UTC)
- I like the first one better, because it seems to be simpler, but I think we should keep both. Jay =^•ﻌ•^= 19:36, 7 October 2025 (UTC)
- In context, I agree that keeping both is the most constructive option, especially as both options still occur in the wild. To anyone who feels that showing just one example would be more parsimonious, I suggest that to quibble about such a triviality is counter-productive.
- Anyway, users who are not yet familiar with the realities of software design history might profit from seeing a material example. Seasoned users will remember far more complex examples of changes from the earlier versions of now-standard languages, say COBOL and more.
- And our job is primarily to assist the reader, and the more naive the reader, the more valuable assistance with perspective could be. JonRichfield (talk) 09:41, 8 October 2025 (UTC)
- Yeah I agree with you. Lets have them both. I think we have consensus. Jay =^•ﻌ•^= 18:15, 8 October 2025 (UTC)
- Wikipedia former featured articles
- Featured articles that have appeared on the main page
- Featured articles that have appeared on the main page once
- Old requests for peer review
- C-Class level-4 vital articles
- Wikipedia level-4 vital articles in Technology
- C-Class vital articles in Technology
- C-Class Android articles
- High-importance Android articles
- WikiProject Android articles
- C-Class Computing articles
- High-importance Computing articles
- All Computing articles
- C-Class Computer science articles
- High-importance Computer science articles
- WikiProject Computer science articles
- C-Class Java articles
- Top-importance Java articles
- WikiProject Java articles