Answers:
: B
Explanation:
: //2 tries to access Nested as if it is a variable
of Test038, which is not the case.
JavaBeginnersFaq
"Yesterday is history, tomorrow is a mystery, and today is a gift; that's why they call it the present." Eleanor Roosevelt
Guoqiao Sun<br />SCJP2 SCWCD2<br />Creator of <a href="http://www.jiris.com/" target="_blank" rel="nofollow">www.jiris.com</a>, Java resource, mock exam, forum
Muhammad Farooq<br />Sun Certified Programmer for Java 2 Platform<br />Oracle8i Certified Professional Database Administrator
Guoqiao Sun<br />SCJP2 SCWCD2<br />Creator of <a href="http://www.jiris.com/" target="_blank" rel="nofollow">www.jiris.com</a>, Java resource, mock exam, forum
Select valid contructors for FileOutputStream.
(Select four correct answers)
-----------------------------------------------------------------------
-----------------------------------------------------------------------
A: FileOutputStream(File file)
B: FileOutputStream(File file, boolean append)
C: FileOutputStream(FileDescriptor fd)
D: FileOutputStream(FileDescriptor fd, boolean append)
E: FileOutputStream(String fileName)
F: FileOutputStream(String fileName, boolean append)
Answers:
: A C E F
Explanation:
: Please refer to Java API for the details.
Muhammad Farooq<br />Sun Certified Programmer for Java 2 Platform<br />Oracle8i Certified Professional Database Administrator
Guoqiao Sun<br />SCJP2 SCWCD2<br />Creator of <a href="http://www.jiris.com/" target="_blank" rel="nofollow">www.jiris.com</a>, Java resource, mock exam, forum
JavaBeginnersFaq
"Yesterday is history, tomorrow is a mystery, and today is a gift; that's why they call it the present." Eleanor Roosevelt
Originally posted by Marilyn deQueiroz:
[CODE]
Seems like it works fine if you split it into two lines (see 5a plus 5b are equal to 2). I also see no reason for it [b]not to work. It appears to me to be a bug, and not something that on the exam. If I saw it on the exam, I would answer 'D' since Nested is static and method is static.[/B]
Guoqiao Sun<br />SCJP2 SCWCD2<br />Creator of <a href="http://www.jiris.com/" target="_blank" rel="nofollow">www.jiris.com</a>, Java resource, mock exam, forum
After some pecan pie, you might want to cleanse your palatte with this tiny ad:
Smokeless wood heat with a rocket mass heater
https://woodheat.net
|