Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
What's new in Java (Android N)
Search
Eugenio Marletti
March 30, 2016
Programming
160
0
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
What's new in Java (Android N)
Lighting talk about what's new in Java in the Android N preview
Eugenio Marletti
March 30, 2016
More Decks by Eugenio Marletti
See All by Eugenio Marletti
Confessions of a Serial K–otlin Multiplatform–er [v2]
takhion
0
160
Confessions of a Serial K–otlin Multiplatform–er
takhion
0
510
Exploiting Kotlin Metadata + Annotation Processing
takhion
1
1.2k
And Google said, Let there be Flutter: and there was Flutter
takhion
2
350
Kotlin’s Mind Blowers
takhion
6
940
Sharing [Kotlin code across platforms] is caring!
takhion
1
230
Flutter: A New Hope [EXTENDED VERSION]
takhion
1
600
Unleash the secret power of Kotlin Metadata
takhion
3
2.1k
Kotlin > 🏝 (Kotlin: more than an island)
takhion
4
400
Other Decks in Programming
See All in Programming
Press start. Python's next generation.
willingc
PRO
3
130
My Marp Sample
sinoue0108
0
120
Jindong: Introducing Declarative Haptics in Compose Multiplatform
l2hyunwoo
0
130
片田舎のおっさん、 Swift Buildのダイアモンド問題解決の不具合修正PRを出すが、解決方法がキャッシュをしないようにすることであり、ビルド時間が伸びると言われてマージされないので高速化もする/swiftbuild
yimajo
0
280
プロポーザルを書いてもらう
pvcresin
0
580
【デモ】Kiroで体験する仕様駆動開発|設計からコーディングまでAIと進める開発フロー
cmkudo
0
390
Oxlintはいいぞ(続)
yug1224
1
450
Go 1.27 における memory allocation の高速化
andpad
0
320
人間の目はかわらない、だからJPEGは30年もつ
yuzneri
12
19k
AI Engineeringは、AIプロダクトだけのものか? 〜AIがソフトウェアを作る時代の新しい当たり前〜 / No AI in your product. AI Engineering in your development.
rkaga
5
530
バグを直したら useEffect が消えた
colorful12
3
700
How I Won Prize Money at a Hackathon Using Codex and Symphony Alpha
yasei_no_otoko
0
120
Featured
See All Featured
How Software Deployment tools have changed in the past 20 years
geshan
1
34k
Stewardship and Sustainability of Urban and Community Forests
pwiseman
0
490
Producing Creativity
orderedlist
PRO
348
40k
技術選定の審美眼(2025年版) / Understanding the Spiral of Technologies 2025 edition
twada
PRO
120
120k
The Illustrated Children's Guide to Kubernetes
chrisshort
51
53k
We Analyzed 250 Million AI Search Results: Here's What I Found
joshbly
1
1.9k
Unlocking the hidden potential of vector embeddings in international SEO
frankvandijk
0
900
Improving Core Web Vitals using Speculation Rules API
sergeychernyshev
21
1.6k
Mobile First: as difficult as doing things right
swwweet
225
10k
The Curious Case for Waylosing
cassininazir
1
480
Navigating Algorithm Shifts & AI Overviews - #SMXNext
aleyda
1
1.6k
B2B Lead Gen: Tactics, Traps & Triumph
marketingsoph
0
220
Transcript
What’s new in Java N Eugenio Marletti @workingkills
Language: 7-ish ∞ diamond operator string switch multicatch K try-with-resources
API: 6-ish K Throwable.addSuppressed() L ForkJoinPool JVM: 6 before N
after N “ we’re looking forward to tracking the Java
language more closely while maintaining backward compatibility ”
lambdas method references after N Language: 8-ish ∞ N default
& static methods in interfaces repeatable annotations API: 8-ish N streams functions optionals missing: date/time? (plz support lib!) JVM: 6 (still no invokedynamic)
lambda method reference anonymous class new View.OnClickListener() { @Override public
void onClick(View view) { doSomething(view); } } view -> doSomething(view) this::doSomething
None
Alternatives Keep doing what you’re doing Retrolambda Kotlin
android { ... defaultConfig { ... jackOptions { enabled true
} } compileOptions { sourceCompatibility JavaVersion.VERSION_1_8 targetCompatibility JavaVersion.VERSION_1_8 } } Getting started: developer.android.com/preview/j8-jack.html TL;DR 1. setup a project for the N preview 2. add this Gradle config:
Slides: bit.ly/new-java-n Eugenio Marletti @workingkills Questions? ktnxbye