首页 > 编程语言 > 详细

看java 笔试题

时间:2015-04-13 00:12:58      阅读:246      评论:0      收藏:0      [点我收藏+]

interface MyConstants {
int r =42;
int s = 69;
int Area;
//插入代码
final double circumference = 2 *Math.PI*r ;
//Cannot reference a field before it is defined
int total = total + r +s; //后面的total会出错
int ArRa = r*s;

// Syntax error on token "MAIN", VariableDeclaratorId expected after this token
public static MAIN=15; //MAIN不对

//Illegal modifier for the interface field MyConstants.CODE; only public, static & final are permitted
protected int CODE = 31337; //CODE不对

}

 

//http://www.job006.com/forum.php?mod=viewthread&tid=30071&extra=page=1&filter=typeid&typeid=794&typeid=794

看java 笔试题

原文:http://www.cnblogs.com/khp123/p/4420992.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!