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
110
Confessions of a Serial K–otlin Multiplatform–er
takhion
0
460
Exploiting Kotlin Metadata + Annotation Processing
takhion
1
1.1k
And Google said, Let there be Flutter: and there was Flutter
takhion
2
300
Kotlin’s Mind Blowers
takhion
6
820
Sharing [Kotlin code across platforms] is caring!
takhion
1
190
Flutter: A New Hope [EXTENDED VERSION]
takhion
1
530
Unleash the secret power of Kotlin Metadata
takhion
3
2k
Kotlin > 🏝 (Kotlin: more than an island)
takhion
4
380
Other Decks in Programming
See All in Programming
Six and a half ridiculous things to do with Quarkus
hollycummins
0
170
理論と実務のギャップを超える
eycjur
0
130
(Extension DC 2025) Actor境界を越える技術
teamhimeh
1
250
ポスターセッション: 「まっすぐ行って、右!」って言ってラズパイカーを動かしたい 〜生成AI × Raspberry Pi Pico × Gradioの試作メモ〜
komofr
0
1.3k
XP, Testing and ninja testing ZOZ5
m_seki
3
630
オープンソースソフトウェアへの解像度🔬
utam0k
15
2.7k
TFLintカスタムプラグインで始める Terraformコード品質管理
bells17
2
160
Devvox Belgium - Agentic AI Patterns
kdubois
1
120
Go言語の特性を活かした公式MCP SDKの設計
hond0413
1
230
Android16 Migration Stories ~Building a Pattern for Android OS upgrades~
reoandroider
0
110
After go func(): Goroutines Through a Beginner’s Eye
97vaibhav
0
380
その面倒な作業、「Dart」にやらせませんか? Flutter開発者のための業務効率化
yordgenome03
1
120
Featured
See All Featured
Leading Effective Engineering Teams in the AI Era
addyosmani
2
320
Visualization
eitanlees
149
16k
Measuring & Analyzing Core Web Vitals
bluesmoon
9
620
Build your cross-platform service in a week with App Engine
jlugia
232
18k
Practical Tips for Bootstrapping Information Extraction Pipelines
honnibal
PRO
23
1.5k
What's in a price? How to price your products and services
michaelherold
246
12k
Sharpening the Axe: The Primacy of Toolmaking
bcantrill
45
2.5k
Context Engineering - Making Every Token Count
addyosmani
5
230
The Invisible Side of Design
smashingmag
302
51k
How to Think Like a Performance Engineer
csswizardry
27
2k
StorybookのUI Testing Handbookを読んだ
zakiyama
31
6.2k
ReactJS: Keep Simple. Everything can be a component!
pedronauck
667
120k
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