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
Sponsored
·
SiteGround - Reliable hosting with speed, security, and support you can count on.
→
Eugenio Marletti
March 30, 2016
Programming
0
140
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
Tweet
Share
More Decks by Eugenio Marletti
See All by Eugenio Marletti
Confessions of a Serial K–otlin Multiplatform–er [v2]
takhion
0
130
Confessions of a Serial K–otlin Multiplatform–er
takhion
0
490
Exploiting Kotlin Metadata + Annotation Processing
takhion
1
1.2k
And Google said, Let there be Flutter: and there was Flutter
takhion
2
320
Kotlin’s Mind Blowers
takhion
6
900
Sharing [Kotlin code across platforms] is caring!
takhion
1
210
Flutter: A New Hope [EXTENDED VERSION]
takhion
1
570
Unleash the secret power of Kotlin Metadata
takhion
3
2.1k
Kotlin > 🏝 (Kotlin: more than an island)
takhion
4
380
Other Decks in Programming
See All in Programming
NOT A HOTEL - 建築や人と融合し、自由を創り出すソフトウェア
not_a_hokuts
2
160
JPUG勉強会 OSSデータベースの内部構造を理解しよう
oga5
1
180
AIプロダクト時代のQAエンジニアに求められること
imtnd
1
380
ふん…おもしれぇ Parser。RubyKaigi 行ってやるぜ
aki_pin0
0
100
Raku Raku Notion 20260128
hareyakayuruyaka
0
400
Claude Codeと2つの巻き戻し戦略 / Two Rewind Strategies with Claude Code
fruitriin
0
170
ノイジーネイバー問題を解決する 公平なキューイング
occhi
0
120
CSC307 Lecture 06
javiergs
PRO
0
690
ぼくの開発環境2026
yuzneri
0
270
AI時代の認知負荷との向き合い方
optfit
0
180
24時間止められないシステムを守る-医療ITにおけるランサムウェア対策の実際
koukimiura
1
160
組織で育むオブザーバビリティ
ryota_hnk
0
180
Featured
See All Featured
Facilitating Awesome Meetings
lara
57
6.8k
HDC tutorial
michielstock
1
420
Sharpening the Axe: The Primacy of Toolmaking
bcantrill
46
2.7k
RailsConf 2023
tenderlove
30
1.3k
Leo the Paperboy
mayatellez
4
1.4k
Helping Users Find Their Own Way: Creating Modern Search Experiences
danielanewman
31
3.1k
Game over? The fight for quality and originality in the time of robots
wayneb77
1
120
Exploring the relationship between traditional SERPs and Gen AI search
raygrieselhuber
PRO
2
3.6k
Designing for humans not robots
tammielis
254
26k
Impact Scores and Hybrid Strategies: The future of link building
tamaranovitovic
0
210
Darren the Foodie - Storyboard
khoart
PRO
2
2.5k
Optimising Largest Contentful Paint
csswizardry
37
3.6k
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