您的位置:寻梦网首页编程乐园Java天地Core JavaJava Lecture Notes

Introduction

Content

Apply

Reflect

Extend

previous.gif
 (3087 bytes)

next.gif
 (2959 bytes)


Apply Index

Apply Page # 11

Exercise 7 — Null pointer exceptions

One of the most important run-time exceptions is the ‘null pointer exception’. Use the Java documentation to find out what a null pointer exception is, and write a few lines of Java that will generate such an exception.

Discussion/Suggested solution to Exercise 7

Back to content

basicline.gif (169 bytes)

RITSEC - Global Campus
Copyright ?1999 RITSEC- Middlesex University. All rights reserved.
webmaster@globalcampus.com.eg