📄 sld055.htm
字号:
<!-- Presentation generated by Internet Assistant for Microsoft PowerPoint 97 -->
<HTML>
<HEAD>
<META HTTP-EQUIV="Context-Type" CONTEXT="text/html;charset=windows-1252">
<meta name="GENERATOR" content="Microsoft Internet Assistant for Microsoft PowerPoint 97">
<TITLE>Quiz</TITLE>
</HEAD>
<BODY >
<CENTER>
<TABLE WIDTH=100%>
<TR> <TD WIDTH=15% ALIGN=CENTER>
<A HREF="sld001.htm"><IMG SRC="first.gif" BORDER=0 ALT="First"></A><BR>
<A HREF="sld054.htm"><IMG SRC="prev.gif" BORDER=0 ALT="Previous"></A><BR>
<A HREF="sld056.htm"><IMG SRC="next.gif" BORDER=0 ALT="Next"></A><BR>
<A HREF="sld101.htm"><IMG SRC="last.gif" BORDER=0 ALT="Last"></A><BR>
<BR>
<A HREF="index.htm"><IMG SRC="info.gif" BORDER=0 ALT="Index"></A><BR>
<A HREF="www.cs.nott.ac.uk/~azt"><IMG SRC="home.gif" BORDER=0 ALT="Home"></A><BR>
<A HREF="tsld055.htm"><IMG SRC="text.gif" BORDER=0 ALT="Text"></A><BR>
<TD WIDTH=85% ALIGN=CENTER> <IMG SRC="img055.GIF" usemap="#Objmap" WIDTH=800 HEIGHT=600 BORDER=0>
</TD> </TD></TABLE>
<P>Slide 55 of 101</P>
</CENTER>
<!-- <UL>
<H2>Quiz</H2>
<BR></UL></P>
<P><UL>
What is the output of the following program?
<BR></UL><UL>
</UL><UL>
public class TestException {
</UL><UL>
public static void main(String[] args) {
</UL><UL>
int[] intArray= new int[10];
</UL><UL>
boolean result; result = fillArray(intArray);
</UL><UL>
System.out.println("Result: " + result);
</UL><UL>
}
</UL><UL>
public static boolean fillArray(int[] intArray) {
</UL><UL>
try {
</UL><UL>
intArray[0] = 99;
</UL><UL>
return true;
</UL><UL>
}
</UL><UL>
catch(Exception e) {
</UL><UL>
System.out.println("Exception while accessing the array!");
</UL><UL>
}
</UL><UL>
finally {
</UL><UL>
return false;
</UL><UL>
}
</UL><UL>
}
</UL><UL>
}
</UL></P>
<P> -->
</Body>
</HTML>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -