Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
ratww
on April 30, 2021
|
parent
|
context
|
favorite
| on:
Inheritance was invented as a performance hack
"Interfaces with default implementations" are a thing in Java and in some other languages, but most people don't know about them:
https://docs.oracle.com/javase/tutorial/java/IandI/defaultme...
rectang
on April 30, 2021
[–]
I knew that Java added "default methods" to its interfaces a few years ago, but wasn't sure whether Java uses "fat pointers" like Rust and Go.
Consider applying for YC's Winter 2026 batch! Applications are open till Nov 10
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search:
https://docs.oracle.com/javase/tutorial/java/IandI/defaultme...