TA的每日心情 | 开心 2021-3-12 23:18 |
---|
签到天数: 2 天 [LV.1]初来乍到
|
java
编程实践-- 计算器的实现, ppt课件。 CCIT 软件学院 Java 教研室
考考你(12)
- Consider the following code: What will be printed?
- public class newIntegerLong{
- public static void main(String[]args){
- Integer nA = new Integer(4096);
- Long nB = new Long(4096);
- if(nA.equals(nB))
- System.out.println("LongEqualsInteger.");
- if(nA.intValue() == nB.longValue()){
- System.out.println("If you create new primitive values of Long(4096)
- and Integer(4096), then == true.");
- }}}
- A. LongEqualsInteger.
- B. If you create new primitive values of Long(4096) and Integer(4096),then == true.
- C. LongEqualsInteger. If you create new primitive values of Long(4096)
- and Integer(4096), then == true.
- D. If you create new primitive values of Long(4096) and Integer(4096),then == true.
- E. Nothing will be printed.
- [b]
- 点击观看答案[/b]
复制代码
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/130000703.zip |
|