This week's book giveaway is in the General Computing forum.
We're giving away four copies of Arduino in Action and have Martin Evans, Joshua Noble, and Jordan Hochenbaum on-line!
See this thread for details.
The moose likes Programmer Certification (SCJP/OCPJP) and the fly likes IBM Mock #21 Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


JavaRanch » Java Forums » Certification » Programmer Certification (SCJP/OCPJP)
Reply Bookmark "IBM Mock #21" Watch "IBM Mock #21" New topic
Author

IBM Mock #21

Kai Li
Greenhorn

Joined: Jun 26, 2000
Posts: 29
AWT components get their look and feel from:
a. Programmable painting support classes;
b. JVM drawing primitives;
c. SWING class;
d. Peer classes;
I don't know how to answer this question and I just select d. Can somebody tell me which is correct answer and why?
[This message has been edited by Kai Li (edited July 28, 2000).]
Anonymous
Ranch Hand

Joined: Nov 22, 2008
Posts: 18944
I also think that option D (peer classes) is correct. My understanding is that the JVM uses the resources of the operating system to generate the components you see. I suppose native calls are made to the underlying OS to draw, say, a button and futher OS interaction is performed to deal with events like clicks and such. Notice that these components have the look and feel of the OS.
Swing is different in that the JVM, itself, handles the rendering of and interactions with the components instead of relying on the underlying OS's implementation.
I'm hoping that someone who knows a lot about the subject will refine and/or add my explanation.
[This message has been edited by DaB (edited July 28, 2000).]
 
I agree. Here's the link: http://zeroturnaround.com/jrebel - it saves me about five hours per week
 
subject: IBM Mock #21
 
Similar Threads
CMP vs BMP
IBM Exam 486 UML and OOAD
question from javcross simulation!
Threads (from jwhiz)
When destroy method is called?