码迷,mamicode.com
首页 > 编程语言 > 详细

看java 笔试题

时间:2015-04-13 00:15:27      阅读:200      评论: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
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!