TA的每日心情 | 开心 2021-3-12 23:18 |
---|
签到天数: 2 天 [LV.1]初来乍到
|
java 的异常处理,ppt课件。作者不详。
考考你(13)
- Consider the following code: What will be printed?
- public class booleanFlag{
- public static void main(String[] args){
- test();
- test2();
- }
- public static void test(){
- //boolean flag = false;
- if(flag=true){
- System.out.println("true");
- }else {
- System.out.println("false");
- }
- }
- public static void test2(){
- boolean flag = false;
- if(flag==true){
- System.out.println("true");
- }else {
- System.out.println("false");
- }
- }
- }
- A. true true
- B. true false
- C. false true
- D. false false
- E. Compilation error. Cannot resolve symbol: variable flag.
-
复制代码
点击观看答案
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/1/125954766.zip |
|