摘要
在java语言的使用中,经常困扰程序员的一件事就是代码中的逻辑错误难以定位,从而降低了工作效率。fillal关键词的用法能在很大程度上解决这一类的问题,将逻辑错误转换为编译器能够识别的编译错误。在Java编程中将final作为一种规范将使整个项目变得更加便于管理,也更利于后期的测试和维护。
In the programming of Java,it is important to ensure the precision of the code.Unfortunately,this job is really hard for most en- gineers.But the use of final may reduce the difficulty to some degree.It exchanges logic errors with compiler errors when you introduce this tactic.
作者
陆添超
LU Tian-chao (School of Computer Science and Technology, China University of Mining and Technology, Xuzhou 221116, China)
出处
《电脑知识与技术》
2010年第02X期1406-1408,共3页
Computer Knowledge and Technology