Sunday, August 2, 2009

JAVA terms?

(a) When writing a subclass of JPanel, what reserved word appears on the class header to indicate that you are using inheritance?


(b) How many interfaces can a class be written to satisfy? Namely, is it limited to a single interface or to as many as you need?


(c) In a subclass, you can write a method with the same name and signature as a method you are inheriting. This is an example of what?


(d) When writing an event-driven GUI that uses Swing components, what package must also be imported to make sure speci cally that the event handling works.


(e) Which layout manager provides areas such as NORTH, SOUTH, etc?


(f) Which layout manager allows for "glue" and an "axis"?


(g) Which layout manager is the default for a JPanel?


(h) If I want to share a variable called population across all my instances of Dog so that all instances have access to the same one single variable, I need to use what reserve word when declaring population?


(i) What class has the method showInputDialog?

JAVA terms?
(a) extends


(b) as many as you need


(c) overriding


(d) java.awt.event


(e) BorderLayout


(f) BoxLayout


(g) FlowLayout


(h) static


(i) javax.swing.JOptionPane
Reply:Dang girl! Hey - I have and idea! Instead of doing your homework yourself, why not just post the entire assingment on Yahoo Answers?!?!


Oh - wait - you already did that!


I think you should at least try to answer some of these yourself, don't you?


For future reference, it's best if you at least TRY to make it not look so obviously like a homework assignment...


No comments:

Post a Comment