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
84
Confessions of a Serial K–otlin Multiplatform–er
takhion
0
380
Exploiting Kotlin Metadata + Annotation Processing
takhion
1
1.1k
And Google said, Let there be Flutter: and there was Flutter
takhion
2
260
Kotlin’s Mind Blowers
takhion
6
700
Sharing [Kotlin code across platforms] is caring!
takhion
1
170
Flutter: A New Hope [EXTENDED VERSION]
takhion
1
450
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
意外とフォントが大事だった話 / Font Issues on Internationalization
fumi23
0
110
KSPの導入・移行を前向きに検討しよう!
shxun6934
PRO
0
280
Jakarta EE meets AI
ivargrimstad
0
390
Kotlin 2.0 and Beyond
antonarhipov
2
150
Ruby Parser progress report 2024
yui_knk
2
230
A New Era of Testing
mannodermaus
2
510
LangChainの現在とv0.3にむけて
os1ma
4
930
API Platform for Laravel
dunglas
1
440
Android開発以外のAndroid開発経験の活かしどころ
konifar
2
1k
メモリ最適化を究める!iOSアプリ開発における5つの重要なポイント
yhirakawa333
0
420
Perl 5 OOP機構30年史 - Perl 5's OOP Mechanism over the past 30 years
moznion
0
360
rails_girls_is_my_gate_to_join_the_ruby_commuinty
maimux2x
0
200
Featured
See All Featured
Fight the Zombie Pattern Library - RWD Summit 2016
marcelosomers
230
17k
Helping Users Find Their Own Way: Creating Modern Search Experiences
danielanewman
29
2.2k
Done Done
chrislema
180
16k
Art, The Web, and Tiny UX
lynnandtonic
294
20k
Designing Dashboards & Data Visualisations in Web Apps
destraynor
227
52k
Fireside Chat
paigeccino
31
2.9k
Being A Developer After 40
akosma
84
590k
Mobile First: as difficult as doing things right
swwweet
221
8.8k
Refactoring Trust on Your Teams (GOTO; Chicago 2020)
rmw
29
2.6k
Put a Button on it: Removing Barriers to Going Fast.
kastner
58
3.4k
VelocityConf: Rendering Performance Case Studies
addyosmani
322
23k
Build your cross-platform service in a week with App Engine
jlugia
228
18k
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