Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
zabzonk
8 months ago
|
parent
|
context
|
favorite
| on:
Java at 30: Interview with James Gosling
That will not compile with javac, as it is not a method of a class.
Pet_Ant
8 months ago
|
next
[–]
That code will it just needs to be in the proper context. No the same file will not compile, even if only because javac needs files to end with .java .
int_19h
8 months ago
|
prev
[–]
Java has "unnamed classes" now which makes this work.
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: