- Java 11 and 12:New Features
- Mala Gupta
- 65字
- 2021-07-02 12:27:02
Type inference versus dynamic binding
The use of type inference with var isn't pushing Java towards the dynamic binding domain. Java is still a strongly-typed static language. The type inference in Java is syntactic sugar. The compiler infers the type and adds it to the bytecode. In dynamic binding, a variable type is inferred at runtime. This can lead to more errors being discovered later.
推薦閱讀
- .NET之美:.NET關(guān)鍵技術(shù)深入解析
- Mastering Entity Framework Core 2.0
- Java多線程編程實(shí)戰(zhàn)指南:設(shè)計(jì)模式篇(第2版)
- Monkey Game Development:Beginner's Guide
- Objective-C應(yīng)用開發(fā)全程實(shí)錄
- Mastering ServiceStack
- 深入淺出Java虛擬機(jī):JVM原理與實(shí)戰(zhàn)
- Data Analysis with Stata
- SSM輕量級(jí)框架應(yīng)用實(shí)戰(zhàn)
- 小程序開發(fā)原理與實(shí)戰(zhàn)
- C語言程序設(shè)計(jì)教程
- Natural Language Processing with Java and LingPipe Cookbook
- Android項(xiàng)目實(shí)戰(zhàn):手機(jī)安全衛(wèi)士開發(fā)案例解析
- FFmpeg開發(fā)實(shí)戰(zhàn):從零基礎(chǔ)到短視頻上線
- Deep Learning for Natural Language Processing