SCJP Mock Exam 4(10)
添加时间: 2007-9-23 2:19:28 作者: JAVA题库 阅读次数:60 来源: http://www.d9soft.com
If you have a copy of the Roberts and Heller Java 2 Guide that says the exam does not cover the GridBagLayout, this is an error. You can confirm this by looking at the online errata at
http://www.sybex.com/cgi-bin/rd_err_temp.pl?2463err.html
http://www.jchq.net/tutorial/08_01Tut.htm
--------------------------------------------------------------------------------
Answer 57)
Objective 10.1)
Back to Question 57)
4) A collection for storing bits as on-off information, like a vector of bits
This is the description given to a bitset in Bruce Eckels "Thinking in Java" book. The reference to unique sequence of bits was an attempt to mislead because of the use of the word Set in the name bitset. Normally something called a set implies uniqueness of the members, but not in this context.
http://www.jchq.net/tutorial/10_01Tut.htm
--------------------------------------------------------------------------------
Answer 58)
Back to Question 58)
Objective 4.1)
4)Compile error: Superclass Class1.Base of class Class1.Class1 not found
Using the package statement has an effect similar to placing a source file into a different directory. Because the files are in different packages they cannot see each other. The stuff about File1 not having been compiled was just to mislead, java has the equivalent of an "automake", whereby if it was not for the package statements the other file would have been automatically compiled.
http://www.jchq.net/tutorial/04_01Tut.htm
--------------------------------------------------------------------------------
Answer 59)
Back to Question 59)
Objective 6.2)
4) Output of Over.amethod()
The names of parameters to an overridden method is not important.
http://www.jchq.net/tutorial/06_02Tut.htm
--------------------------------------------------------------------------------
Answer 60)
Objective 8.1)
Back to Question 60)
1) Set the gridy value of the GridBagConstraints class to a value increasing from 1 to 4
Answer 4 is fairly obviously bogus as it is the GridBagConstraints class that does most of the magic in laying out components under the GridBagLayout manager. The fill value of the GridBagConstraints class controls the behavior inside its virtual cell and the ipady field controls the internal padding around a component.
If you have a copy of the Roberts and Heller Java2 Guide that says the exam does not cover the GridBagLayout, this is an error. You can confirm this by looking at the online errata at
http://www.sybex.com/cgi-bin/rd_err_temp.pl?2463err.html
http://www.jchq.net/tutorial/08_01Tut.htm
上一篇文章: SCJP Mock Exam 4(9) 下一篇文章: SCJP模拟试题[2](1)
相关文章:
相关软件:

