TA的每日心情 | 开心 2021-3-12 23:18 |
---|
签到天数: 2 天 [LV.1]初来乍到
|
java 小应用程序 Applet ppt教学课件
主讲: 王小刚 常州信息职业技术学院软件学院 wxiaog@ccit.js.cn
考考你(15)
Which one statement in true about the application below?
1. class StaticStuff {
2. static int x = 10;
3. static { x += 5; }
4. public static void main(String args[]){
5. System.out.println("x = " + x);
6. }
7. static { x /= 5; }
8. }
a. The code compiles, and execution produces the output x = 10.
b. The code compiles, and execution produces the output x = 15.
c. The code compiles, and execution produces the output x = 3.
d. Line 7 will not compile, because you can have only one static initializer.
点击查看答案
function TempSave(ElementID)
{
CommentsPersistDiv.setAttribute("CommentContent",document.getElementById(ElementID).value);
CommentsPersistDiv.save("CommentXMLStore");
}
function Restore(ElementID)
{
CommentsPersistDiv.load("CommentXMLStore");
document.getElementById(ElementID).value=CommentsPersistDiv.getAttribute("CommentContent");
}
源码下载:http://file.javaxxz.com/2014/10/28/235520375.zip |
|