Implementation a.
Implementation b.
Implementation c.
Implementation d.
Implementation e.
第1题:
A.String regex="";
B.String regex=" .";
C.String regex=".*";
D.String regex="\\s";
E.String regex="\\.\\s*";
F.String regex="\\w[\.]+";
第2题:
Which two statements are true about the hashCode method?()
第3题:
You are writing a method that accepts a string parameter named message.Your method must break the message parameter into individual lines of text and pass each line to a second method named Process.Which code segment should you use?()
A.
B.
C.
D.
第4题:
Which HttpSession method stores an object in a session?()
第5题:
When compressing data with the DeflateStream class, how do you specify a stream into which to write compressed data?()
第6题:
If possible please suggest further improvement of the String class.
Question 3:
Given a link list, detect whether it's circular using only one loop.
Tips: Below implementation is allowed
for( ... )
{
...
}
The following implementations is NOT allowed
...
for( ... )
{
...
for( ... ) {...}
}
...
or
...
for( p = list->head, q = list->head; p != NULL && q != NULL; p = p->next )
{
...
}
...
for( ... )
{
...
}
第7题:
Given: 6.
第8题:
A. java.lang.RuntimeException: Problem
B. run.java.lang.RuntimeException: Problem
C. End of method.java.lang.RuntimeException: Problem
D. End of method.run.java.lang.RuntimeException: Problem
E. run.java.lang.RuntimeException: Problem End of method.
第9题:
Which methods from the String and StringBuffer classes modify the object on which they are called?()
第10题:
Given the ActionEvent, which method allows you to identify the affected component?()