TA的每日心情 | 开心 2021-3-12 23:18 |
---|
签到天数: 2 天 [LV.1]初来乍到
|
java多线程教学课件,PPT格式。
考考你(14)
Given the following hierarchical relationship of several classes.
1. Object
2. |---TypeA
3. | |-----TypeAB
4. | |-----TypeAC
5. |--------TypeY
And given the following method definition
6. public sayType(Object x ){
7. if(x instanceof Object ) System.out.print("Object,");
8. if(x instanceof TypeA ) System.out.print("TypeA,");
9. if(x instanceof TypeAB ) System.out.print("TypeAB,");
10. if(x instanceof TypeAC ) System.out.print("TypeAC,");
11. }
What would the program output be if the following line
was executed
12. sayType( new TypeAB() );
a. Object,
b. Object,TypeA,TypeAB,
c. TypeAB,
d. Object,TypeAC,
点击查看答案
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/29/235812000.zip |
|