This week's book giveaway is in the Android forum.
We're giving away four copies of Head First Android and have Dawn & David Griffiths on-line!
See this thread for details.
The moose likes Programmer Certification (SCJP/OCPJP) and the fly likes Question Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Head First Android this week in the Android forum!
JavaRanch » Java Forums » Certification » Programmer Certification (SCJP/OCPJP)
Bookmark "Question" Watch "Question" New topic
Author

Question

Hans
Greenhorn

Joined: Sep 20, 2000
Posts: 11
Which of the following statements are true about setLayout() method
in java.awt.ScrollPane
1.Does nothing.
2.Throws UnsupportedMethodException when called.
3.It is not overriden in java.awt.ScrollPane.
4.Sets the layout to the specified Layout Manager.
Answer is 1.Why?
I think 4.
2.)What means is demon threads ?I read book JAVA 2 EXAM CARM
does not include the concept.Whether I need to know it,if
I want pass EXAM?
Tony Alicea
Desperado
Sheriff

Joined: Jan 30, 2000
Posts: 3222
    
    5
Answer 1 is correct. Please see the free on-line API at

http://java.sun.com/products/jdk/1.2/docs/api/java/awt/ScrollPane.html#setLayout(java.awt.LayoutManager)


Tony Alicea
Senior Java Web Application Developer, SCPJ2, SCWCD
Mapraputa Is
Leverager of our synergies
Sheriff

Joined: Aug 26, 2000
Posts: 10065
Question 2:
You can read about daemon threads and how they are different from user thread here: http://www.javaranch.com/ubb/Forum24/HTML/001830.html
I do not think you are required to know about daemon threads for the exam, but it is good if you do � you feel more confident.

Uncontrolled vocabularies
"I try my best to make *all* my posts nice, even when I feel upset" -- Philippe Maquet
 
Consider Paul's rocket mass heater.
 
subject: Question
 
It's not a secret anymore!