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
110
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
78
Confessions of a Serial K–otlin Multiplatform–er
takhion
0
350
Exploiting Kotlin Metadata + Annotation Processing
takhion
1
1k
And Google said, Let there be Flutter: and there was Flutter
takhion
2
250
Kotlin’s Mind Blowers
takhion
6
680
Sharing [Kotlin code across platforms] is caring!
takhion
1
170
Flutter: A New Hope [EXTENDED VERSION]
takhion
1
430
Unleash the secret power of Kotlin Metadata
takhion
3
1.9k
Kotlin > 🏝 (Kotlin: more than an island)
takhion
4
350
Other Decks in Programming
See All in Programming
入社1ヶ月でここまでやった!Findy Toolsインフラ支援の最適化
rvirus0817
6
1.4k
CSC307 Lecture 14
javiergs
PRO
0
220
CSC307 Lecture 07
javiergs
PRO
0
220
TiDB Serverless ~理想のServerless DBを考える~
soso_15315
1
160
Polarsの成長: v0.14からv1.0までの変遷と今後の展望
zerebom
1
350
実用的かつリーズナブルな 「Azure × Gemini × LINE」~キャラクターBot 実装ライブデモ~
tomodo_ysys
1
170
AWS初心者ってどうやってAWSを学ぶ?〜アプリエンジニアがやってよかったアーキテクチャ学習方法〜
yamanashi_ren01
0
190
Folding Cheat Sheet #7
philipschwarz
PRO
0
150
Xcode 16のPreviewModifierと@Previewableを活用した効率的なプレビュー方法の考察
ojun9
2
160
みんなのオブザーバビリティプラットフォームを作ってるんだがパフォーマンスがやばい #mackerelio #srenext
ne_sachirou
0
370
Javaの現状2024夏 / Java current status 2024 summer
kishida
4
1.4k
Async Await: Mastering Python's Time-Bending Tricks - EuroPython2024
yanbo
1
290
Featured
See All Featured
What the flash - Photography Introduction
edds
65
11k
"I'm Feeling Lucky" - Building Great Search Experiences for Today's Users (#IAC19)
danielanewman
224
21k
Designing on Purpose - Digital PM Summit 2013
jponch
113
6.6k
Why You Should Never Use an ORM
jnunemaker
PRO
51
8.9k
A Tale of Four Properties
chriscoyier
155
22k
Atom: Resistance is Futile
akmur
261
25k
Design and Strategy: How to Deal with People Who Don’t "Get" Design
morganepeng
121
18k
How GitHub Uses GitHub to Build GitHub
holman
471
290k
Imperfection Machines: The Place of Print at Facebook
scottboms
262
13k
Adopting Sorbet at Scale
ufuk
71
8.8k
What’s in a name? Adding method to the madness
productmarketing
PRO
21
2.9k
Build your cross-platform service in a week with App Engine
jlugia
227
17k
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