• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Tim Cooke
  • Campbell Ritchie
  • paul wheaton
  • Ron McLeod
  • Devaka Cooray
Sheriffs:
  • Jeanne Boyarsky
  • Liutauras Vilda
  • Paul Clapham
Saloon Keepers:
  • Tim Holloway
  • Carey Brown
  • Piet Souris
Bartenders:

Question

 
Greenhorn
Posts: 11
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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?
 
Desperado
Posts: 3226
5
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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)
 
Leverager of our synergies
Posts: 10065
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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.
 
reply
    Bookmark Topic Watch Topic
  • New Topic