*
The moose likes Mock Exam Errata and the fly likes JavaCap tutorial - self review Q3 Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Certification » Mock Exam Errata
Bookmark "JavaCap tutorial - self review Q3" Watch "JavaCap tutorial - self review Q3" New topic
Author

JavaCap tutorial - self review Q3

Peter French
Greenhorn

Joined: Oct 18, 2001
Posts: 3
In the tutorial on SCJP Title-8: The java.awt. package- Layout.
Q3 is answered incorrectly. I have repeated the question and answer below, as given on the site.
3. BorderLayout is concerned? Select all legal statements?
[a] add ("North", new Button ("1"));
[b] add (new Button ("2"), BorderLayout. SOUTH );
[c] add (BorderLayout.EAST, new Button ("3"));
[d] add ( new Button ("4");
[e] constant, BorderLayout.SOUTH and "South", can be mixed.
Answer 3
[b] add (new Button ("2"), BorderLayout. SOUTH );
[d] add ( new Button ("4");
[e] constant, BorderLayout.SOUTH and "South", can be mixed.
There are at least three errors.
[a] is correct and does work.
[c] is correct and does work.
[d] is incorrect due to a typo, missing a closing ')'.
regards,
Peter French.
 
Don't get me started about those stupid light bulbs.
 
subject: JavaCap tutorial - self review Q3
 
Similar Threads
IBM's exam questions
LayoutManager
BorderLayout
About java. awt
About java. awt