Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Sign up for free
Menu
Search
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Pricing
Search
Sign in
Sign up for free
What's new in Java (Android N)
Search
Eugenio Marletti
March 30, 2016
Programming
170
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
Transcript
9 slides
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
More Decks by Eugenio Marletti
See All by Eugenio Marletti
Confessions of a Serial K–otlin Multiplatform–er [v2]
takhion
0
170
Confessions of a Serial K–otlin Multiplatform–er
takhion
0
530
Exploiting Kotlin Metadata + Annotation Processing
takhion
1
1.2k
And Google said, Let there be Flutter: and there was Flutter
takhion
2
360
Kotlin’s Mind Blowers
takhion
6
950
Sharing [Kotlin code across platforms] is caring!
takhion
1
240
Flutter: A New Hope [EXTENDED VERSION]
takhion
1
610
Unleash the secret power of Kotlin Metadata
takhion
3
2.2k
Kotlin > 🏝 (Kotlin: more than an island)
takhion
4
410
Other Decks in Programming
See All in Programming
Enforcing Your Architecture with Unit Tests in the AI Era (Swift Connection X)
steliosf
PRO
1
170
React Native経験者が Flutterを30⽇間触って驚いたこと
3saito
0
180
FactoryBotをやめればRSpecは速くなるのか?
yuta_onishi_97
0
1.7k
作れるエンジニアから、価値を届けるエンジニアへ
ryunakayama
1
280
AI Augmentation Techniques with Liberty
ivargrimstad
1
470
Distance field of Julia set
kinakomoti321
0
320
Performance Optimization With LLMs
xleitix
0
260
あなたの await、OS まで届いてる? strace で覗く JavaScript の非同期
hasutosasaki
1
2.3k
Coding with AI: How to trust the storyteller (AWS Community Day Adria, Ljubljana 2026)
slobodan
0
140
動画プレイヤーはなぜカクつくのか 〜Flutterのレンダリングとネイティブの境界を解剖する〜
naruogram
0
330
地方こそサーバーレス — 10年続けた、顔が見えるチームで確かな基盤を / Serverless Matters Most in Regional Areas — 10 Years of Building Reliable Foundations with Close-Knit Teams
seike460
PRO
1
430
ビジネスロジックを堅牢に~Scala 3のドメインプリミティブ~
j5ik2o
0
140
Featured
See All Featured
Large-scale JavaScript Application Architecture
addyosmani
516
110k
How to train your dragon (web standard)
notwaldorf
96
6.9k
A Modern Web Designer's Workflow
chriscoyier
699
190k
What's in a price? How to price your products and services
michaelherold
247
13k
Color Theory Basics | Prateek | Gurzu
gurzu
1
520
Heart Work Chapter 1 - Part 1
lfama
PRO
11
37k
Have SEOs Ruined the Internet? - User Awareness of SEO in 2025
akashhashmi
0
550
Making the Leap to Tech Lead
cromwellryan
135
10k
Pawsitive SEO: Lessons from My Dog (and Many Mistakes) on Thriving as a Consultant in the Age of AI
davidcarrasco
1
300
Applied NLP in the Age of Generative AI
inesmontani
PRO
4
2.6k
Site-Speed That Sticks
csswizardry
13
1.6k
The agentic SEO stack - context over prompts
schlessera
0
1k