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
150
0
Share
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
140
Confessions of a Serial K–otlin Multiplatform–er
takhion
0
500
Exploiting Kotlin Metadata + Annotation Processing
takhion
1
1.2k
And Google said, Let there be Flutter: and there was Flutter
takhion
2
330
Kotlin’s Mind Blowers
takhion
6
920
Sharing [Kotlin code across platforms] is caring!
takhion
1
220
Flutter: A New Hope [EXTENDED VERSION]
takhion
1
590
Unleash the secret power of Kotlin Metadata
takhion
3
2.1k
Kotlin > 🏝 (Kotlin: more than an island)
takhion
4
390
Other Decks in Programming
See All in Programming
AI-DLC Deep Dive
yuukiyo
9
5.4k
リセットCSSを1行消したらアクセシビリティが向上した話
pvcresin
4
450
Spec-Driven Development with AI Agents (Workshop, May 2026)
antonarhipov
2
290
Road to RubyKaigi: Play Hard(ware)
makicamel
1
530
Oxlintとeslint-plugin-react-hooks 明日から始められそう?
t6adev
0
320
How We Practice Exploratory Testing in Iterative Development( #scrumniigata ) / 反復開発の中で、探索的テストをどう実施しているか
teyamagu
PRO
3
620
PicoRuby for IoT: Connecting to the Cloud with MQTT
yuuu
2
740
Firefoxにコントリビューションして得られた学び
ken7253
2
150
Agentic Elixir
whatyouhide
0
440
属人化しないコード品質の作り方_2026.04.07.pdf
muraaano
0
300
ハーネスエンジニアリングにどう向き合うか 〜ルールファイルを超えて開発プロセスを設計する〜 / How to approach harness engineering
rkaga
27
18k
第3木曜LT会 #28
tinykitten
PRO
0
120
Featured
See All Featured
[RailsConf 2023] Rails as a piece of cake
palkan
59
6.5k
Test your architecture with Archunit
thirion
1
2.2k
Stop Working from a Prison Cell
hatefulcrawdad
274
21k
Designing Experiences People Love
moore
143
24k
Done Done
chrislema
186
16k
The Art of Programming - Codeland 2020
erikaheidi
57
14k
The Web Performance Landscape in 2024 [PerfNow 2024]
tammyeverts
12
1.1k
Lightning talk: Run Django tests with GitHub Actions
sabderemane
0
180
CoffeeScript is Beautiful & I Never Want to Write Plain JavaScript Again
sstephenson
162
16k
Max Prin - Stacking Signals: How International SEO Comes Together (And Falls Apart)
techseoconnect
PRO
0
160
Believing is Seeing
oripsolob
1
120
Digital Projects Gone Horribly Wrong (And the UX Pros Who Still Save the Day) - Dean Schuster
uxyall
0
1.3k
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