⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 tsld055.htm

📁 an excellent java tutorial for the ones who is not a beginner of this language
💻 HTM
字号:

<HTML>

<HEAD>
<META HTTP-EQUIV="Context-Type" CONTEXT="text/html;charset=windows-1252">
<meta name="GENERATOR" content="Microsoft Internet Assistant for PowerPoint 97">
 <TITLE>Quiz</TITLE> 
</HEAD>

<BODY     >

 <H1>Quiz</H1> 
 <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></P> 
<P>
<TABLE>
  <TD HEIGHT=100 WIDTH=100> <A HREF="tsld054.htm">Previous slide</A> </TD>
  <TD HEIGHT=100 WIDTH=100> <A HREF="tsld056.htm">Next slide</A> </TD>
  <TD HEIGHT=100 WIDTH=150> <A HREF="tsld001.htm">Back to first slide</A> </TD>
  <TD HEIGHT=100 WIDTH=150> <A HREF="sld055.htm">View graphic version</A> </TD>
</TABLE>
<BR>
</P>



</Body>
</HTML>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -