Fall
2015
Homework
#3
30
Points
Assigned:
9/14/2015
Due:
9/23/2015
11:59pm
1. Read
chapter
11
of
Big
Java
5th
Edition
and
provide
short
answers
to
the
following
questions.
Submit
your
answers
in
a
text
document
(plain
text
or
Microsoft
Word
format,
please).
a. What
happens
if
you
try
to
open
a
file
for
reading
that
doesn't
exist?
What
happens
if
you
try
to
open
a
file
for
writing
that
doesn't
exist?
b. How
do
you
open
a
file
on
Windows
whose
name
contains
a
backslash,
like
C:\temp\output.dat
using
a
String
to
contain
the
name?
Show
the
sample
code
that
creates
a
new
File
object
for
the
filename
string
for
C:\temp\output.dat,
and
then
the
following
new
Scanner
object
that
opens
the
file
for
reading.
c. What
is
the
difference
between
throwing
an
exception
and
catching
an
exception?
d. What
can
your
program
do
with
the
exception
object
that
a
catch
clause
receives?
Describe
at
least
two
different
things
a
program
can
do
with
an
exception.