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
140
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
120
Confessions of a Serial K–otlin Multiplatform–er
takhion
0
480
Exploiting Kotlin Metadata + Annotation Processing
takhion
1
1.2k
And Google said, Let there be Flutter: and there was Flutter
takhion
2
310
Kotlin’s Mind Blowers
takhion
6
880
Sharing [Kotlin code across platforms] is caring!
takhion
1
210
Flutter: A New Hope [EXTENDED VERSION]
takhion
1
550
Unleash the secret power of Kotlin Metadata
takhion
3
2.1k
Kotlin > 🏝 (Kotlin: more than an island)
takhion
4
380
Other Decks in Programming
See All in Programming
Claude Codeの「Compacting Conversation」を体感50%減! CLAUDE.md + 8 Skills で挑むコンテキスト管理術
kmurahama
1
690
「コードは上から下へ読むのが一番」と思った時に、思い出してほしい話
panda728
PRO
39
26k
AI 駆動開発ライフサイクル(AI-DLC):ソフトウェアエンジニアリングの再構築 / AI-DLC Introduction
kanamasa
11
4.7k
リリース時」テストから「デイリー実行」へ!開発マネージャが取り組んだ、レガシー自動テストのモダン化戦略
goataka
0
150
Cap'n Webについて
yusukebe
0
160
Findy AI+の開発、運用におけるMCP活用事例
starfish719
0
2k
Navigating Dependency Injection with Metro
l2hyunwoo
1
200
SwiftUIで本格音ゲー実装してみた
hypebeans
0
550
[AtCoder Conference 2025] LLMを使った業務AHCの上⼿な解き⽅
terryu16
6
970
マスタデータ問題、マイクロサービスでどう解くか
kts
0
160
GISエンジニアから見たLINKSデータ
nokonoko1203
0
190
愛される翻訳の秘訣
kishikawakatsumi
3
360
Featured
See All Featured
Unsuck your backbone
ammeep
671
58k
Joys of Absence: A Defence of Solitary Play
codingconduct
1
260
Paper Plane (Part 1)
katiecoart
PRO
0
2.5k
How to Build an AI Search Optimization Roadmap - Criteria and Steps to Take #SEOIRL
aleyda
1
1.8k
SERP Conf. Vienna - Web Accessibility: Optimizing for Inclusivity and SEO
sarafernandez
1
1.3k
StorybookのUI Testing Handbookを読んだ
zakiyama
31
6.5k
What the history of the web can teach us about the future of AI
inesmontani
PRO
0
380
Un-Boring Meetings
codingconduct
0
170
Into the Great Unknown - MozCon
thekraken
40
2.2k
Building Flexible Design Systems
yeseniaperezcruz
330
39k
Rails Girls Zürich Keynote
gr2m
95
14k
16th Malabo Montpellier Forum Presentation
akademiya2063
PRO
0
33
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