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
89
Confessions of a Serial K–otlin Multiplatform–er
takhion
0
410
Exploiting Kotlin Metadata + Annotation Processing
takhion
1
1.1k
And Google said, Let there be Flutter: and there was Flutter
takhion
2
270
Kotlin’s Mind Blowers
takhion
6
720
Sharing [Kotlin code across platforms] is caring!
takhion
1
180
Flutter: A New Hope [EXTENDED VERSION]
takhion
1
470
Unleash the secret power of Kotlin Metadata
takhion
3
2k
Kotlin > 🏝 (Kotlin: more than an island)
takhion
4
350
Other Decks in Programming
See All in Programming
オニオンアーキテクチャを使って、 Unityと.NETでコードを共有する
soi013
0
370
PHPで作るWebSocketサーバー ~リアクティブなアプリケーションを知るために~ / WebSocket Server in PHP - To know reactive applications
seike460
PRO
2
770
Flatt Security XSS Challenge 解答・解説
flatt_security
0
730
PicoRubyと暮らす、シェアハウスハック
ryosk7
0
210
為你自己學 Python
eddie
0
520
Stackless и stackful? Корутины и асинхронность в Go
lamodatech
0
1.3k
ASP.NET Core の OpenAPIサポート
h455h1
0
110
LLM Supervised Fine-tuningの理論と実践
datanalyticslabo
8
1.9k
Оптимизируем производительность блока Казначейство
lamodatech
0
950
『改訂新版 良いコード/悪いコードで学ぶ設計入門』活用方法−爆速でスキルアップする!効果的な学習アプローチ / effective-learning-of-good-code
minodriven
28
4.1k
Findy Team+ Awardを受賞したかった!ベストプラクティス応募内容をふりかえり、開発生産性向上もふりかえる / Findy Team Plus Award BestPractice and DPE Retrospective 2024
honyanya
0
140
AWSのLambdaで PHPを動かす選択肢
rinchoku
2
390
Featured
See All Featured
Mobile First: as difficult as doing things right
swwweet
222
9k
How To Stay Up To Date on Web Technology
chriscoyier
790
250k
A better future with KSS
kneath
238
17k
Building an army of robots
kneath
302
45k
Building Your Own Lightsaber
phodgson
104
6.2k
Practical Tips for Bootstrapping Information Extraction Pipelines
honnibal
PRO
10
860
Stop Working from a Prison Cell
hatefulcrawdad
267
20k
The Success of Rails: Ensuring Growth for the Next 100 Years
eileencodes
44
7k
Fireside Chat
paigeccino
34
3.1k
4 Signs Your Business is Dying
shpigford
182
22k
The World Runs on Bad Software
bkeepers
PRO
66
11k
No one is an island. Learnings from fostering a developers community.
thoeni
19
3.1k
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