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
100
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
74
Confessions of a Serial K–otlin Multiplatform–er
takhion
0
310
Exploiting Kotlin Metadata + Annotation Processing
takhion
1
1k
And Google said, Let there be Flutter: and there was Flutter
takhion
2
220
Kotlin’s Mind Blowers
takhion
6
640
Sharing [Kotlin code across platforms] is caring!
takhion
1
170
Flutter: A New Hope [EXTENDED VERSION]
takhion
1
400
Unleash the secret power of Kotlin Metadata
takhion
3
1.8k
Kotlin > 🏝 (Kotlin: more than an island)
takhion
4
350
Other Decks in Programming
See All in Programming
フロントエンドパフォーマンス 入門
shouta2
7
1.5k
Go1.22からの疑似乱数生成器について/go-122-pseudo-random-generator
convto
1
160
品質とスピードを両立: TypeScriptの柔軟な型システムをバックエンドで活用する
kosui
4
890
Migrating to Signals: A Practical Workshop
manfredsteyer
PRO
0
280
DDDはなぜ難しいのか / 良いコードの定義と設計能力の壁
pospome
24
7.3k
実践!RDRAを活用した既存システムの仕様変更 / Specification Changes in Existing Systems Utilizing RDRA
imamotohikaru
0
2.6k
C# 大統一理論推進委員会 会員のための Unity Package Manager プロジェクト構成案
monry
PRO
0
580
LLMチャットボットのアプリケーション設計Tips
os1ma
4
660
GitHub Copilot Tips and Tricks
yuichielectric
26
7.4k
Some Quick Ideas To Improve Your Tests ( #jassttokyo )
teyamagu
PRO
2
2.3k
Compiling Python to WebAssembly with py2wasm
syrusakbary
0
140
phpunit/php-code-coverageって何をしてるんだ #phperkaigi
o0h
PRO
2
220
Featured
See All Featured
ParisWeb 2013: Learning to Love: Crash Course in Emotional UX Design
dotmariusz
101
6.6k
Side Projects
sachag
451
41k
The Pragmatic Product Professional
lauravandoore
24
5.7k
StorybookのUI Testing Handbookを読んだ
zakiyama
10
4.5k
Fight the Zombie Pattern Library - RWD Summit 2016
marcelosomers
226
16k
GitHub's CSS Performance
jonrohan
1023
450k
Building Adaptive Systems
keathley
29
1.8k
Scaling GitHub
holman
456
140k
Helping Users Find Their Own Way: Creating Modern Search Experiences
danielanewman
19
1.9k
10 Git Anti Patterns You Should be Aware of
lemiorhan
644
57k
Testing 201, or: Great Expectations
jmmastey
27
6.3k
Fashionably flexible responsive web design (full day workshop)
malarkey
397
65k
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