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
0
130
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
100
Confessions of a Serial K–otlin Multiplatform–er
takhion
0
450
Exploiting Kotlin Metadata + Annotation Processing
takhion
1
1.1k
And Google said, Let there be Flutter: and there was Flutter
takhion
2
290
Kotlin’s Mind Blowers
takhion
6
790
Sharing [Kotlin code across platforms] is caring!
takhion
1
190
Flutter: A New Hope [EXTENDED VERSION]
takhion
1
520
Unleash the secret power of Kotlin Metadata
takhion
3
2k
Kotlin > 🏝 (Kotlin: more than an island)
takhion
4
370
Other Decks in Programming
See All in Programming
VS Code Update for GitHub Copilot
74th
2
650
Discover Metal 4
rei315
2
140
PHP 8.4の新機能「プロパティフック」から学ぶオブジェクト指向設計とリスコフの置換原則
kentaroutakeda
2
920
すべてのコンテキストを、 ユーザー価値に変える
applism118
3
1.3k
0626 Findy Product Manager LT Night_高田スライド_speaker deck用
mana_takada
0
180
Hypervel - A Coroutine Framework for Laravel Artisans
albertcht
1
130
今ならAmazon ECSのサービス間通信をどう選ぶか / Selection of ECS Interservice Communication 2025
tkikuc
21
4k
ISUCON研修おかわり会 講義スライド
arfes0e2b3c
1
450
#QiitaBash MCPのセキュリティ
ryosukedtomita
1
1.4k
ruby.wasmで多人数リアルタイム通信ゲームを作ろう
lnit
3
490
Blazing Fast UI Development with Compose Hot Reload (droidcon New York 2025)
zsmb
1
300
システム成長を止めない!本番無停止テーブル移行の全貌
sakawe_ee
1
210
Featured
See All Featured
I Don’t Have Time: Getting Over the Fear to Launch Your Podcast
jcasabona
32
2.4k
ピンチをチャンスに:未来をつくるプロダクトロードマップ #pmconf2020
aki_iinuma
126
53k
Mobile First: as difficult as doing things right
swwweet
223
9.7k
What's in a price? How to price your products and services
michaelherold
246
12k
How to Ace a Technical Interview
jacobian
278
23k
We Have a Design System, Now What?
morganepeng
53
7.7k
Done Done
chrislema
184
16k
Building a Modern Day E-commerce SEO Strategy
aleyda
42
7.4k
How to train your dragon (web standard)
notwaldorf
95
6.1k
VelocityConf: Rendering Performance Case Studies
addyosmani
332
24k
JavaScript: Past, Present, and Future - NDC Porto 2020
reverentgeek
50
5.5k
Distributed Sagas: A Protocol for Coordinating Microservices
caitiem20
331
22k
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