Jump to content

Talk:Java (programming language)

Page contents not supported in other languages.
From Wikipedia, the free encyclopedia
Skip to table of contents
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.
Article milestones
DateProcessResult
March 23, 2004Featured article candidatePromoted
June 24, 2005Featured article reviewKept
July 25, 2006Featured article reviewDemoted
August 8, 2006Good article nomineeNot listed
June 15, 2008Peer reviewReviewed
A fact from this article was featured on Wikipedia's Main Page in the "On this day..." column on May 23, 2004.
Current status: Former featured article
This level-4 vital article is rated C-class on Wikipedia's content assessment scale.
It is of interest to the following WikiProjects:
Android High-importance
This article is within the scope of WikiProject Android, a collaborative effort to improve the coverage of Android and related topics on Wikipedia. If you would like to participate, please visit the project page, where you can join the discussion and see a list of open tasks.AndroidWikipedia:WikiProject AndroidTemplate:WikiProject AndroidAndroid
HighThis article has been rated as High-importance on the project's importance scale.
Computing High-importance
This article is within the scope of WikiProject Computing, a collaborative effort to improve the coverage of computers, computing, and information technology on Wikipedia. If you would like to participate, please visit the project page, where you can join the discussion and see a list of open tasks.ComputingWikipedia:WikiProject ComputingTemplate:WikiProject ComputingComputing
HighThis article has been rated as High-importance on the project's importance scale.
Computer science High-importance
This article is within the scope of WikiProject Computer science, a collaborative effort to improve the coverage of Computer science related articles on Wikipedia. If you would like to participate, please visit the project page, where you can join the discussion and see a list of open tasks.Computer scienceWikipedia:WikiProject Computer scienceTemplate:WikiProject Computer scienceComputer science
HighThis article has been rated as High-importance on the project's importance scale.
Things you can help WikiProject Computer science with:

Java Top-importance
This article is within the scope of WikiProject Java, a collaborative effort to improve the coverage of Java on Wikipedia. If you would like to participate, please visit the project page, where you can join the discussion and see a list of open tasks.JavaWikipedia:WikiProject JavaTemplate:WikiProject JavaJava
TopThis article has been rated as Top-importance on the project's importance scale.

Tip: Anchors are case-sensitive in most browsers.

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)[reply]

Done by ThisIsNeverUsed in Special:Diff/1180342405. -- Chrisahn (talk) 08:52, 5 September 2025 (UTC)[reply]

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)[reply]

See Duke (mascot). Could be extended with info from https://dev.java/duke/. -- Chrisahn (talk) 08:58, 5 September 2025 (UTC)[reply]

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)[reply]

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)[reply]

Slightly shorter in Java 25:
void main() {
IO.println("Hello, World!");
}
Chrisahn (talk) 08:54, 5 September 2025 (UTC)[reply]

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)[reply]

Good point. We should probably show both, for the time being. -- Chrisahn (talk) 18:44, 7 October 2025 (UTC)[reply]
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)[reply]
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)[reply]
Yeah I agree with you. Lets have them both. I think we have consensus. Jay =^**^= 18:15, 8 October 2025 (UTC)[reply]