[英]Compile time or Runtime for type casting/ type binding / type inference etc
I am relatively new to Java and I had an exam past year that got me stuck. 我是Java的新手,过去一年的考试使我陷入困境。
The task asked me to differentiate which options run at Compilation time / Runtime. 任务要求我区分在编译时/运行时运行哪些选项。
Are there any sources I can read to improve my understanding on static / dynamic binding? 有什么资料可以阅读,以增进我对静态/动态绑定的理解?
ClassCastException
( Java Type Casting ) 类型转换 - 编译时但无法捕获并抛出ClassCastException
( Java类型转换 ) instanceof
( What are the things are checked at compile time by Java? ) 类型检查 - 编译时,但便于运行时类型检查,例如通过instanceof
( Java在编译时检查什么? )
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.