Tuesday, July 28, 2009

JAVA Review - Terminology?

I have a practice test, but no answer sheet. Help?





(a) When writing a class that inherits from another, this reserved word is used on the class header before the superclass's name.


(b) When writing a class that satisfies an interface, this reserved word is used on the class header before the name of the interface.


(c) There might be several methods with the same name within a class, with each having a different signature. This is an example of what?


(d) This type of java program is designed to run from a web page.


(e) This is the name of the default layout manager for a JPanel.


(f) Interfaces can have method headers in them and what else?


(g) Write a single line of code that would declare and create an array (called scores) for 20 ints.


(h) Class Fields (as opposed to instance fields) are labeled with what reserved word when they are declared?


(i) What class has the method showInputDialog?


(j) Which package should be imported if using JButtons, JPanels, etc in a GUI?

JAVA Review - Terminology?
(a) extends


(b) implements


(c) overloading


(d) applet


(e) FlowLayout


(f) class fields


(g) int[] scores = new int[20];


(h) static


(i) JOptionPane


(j) javax.swing
Reply:Go ahead and do the practice test. Post your answers and we will let you know if you are wrong. You can do it...





Good Luck
Reply:do your own assignment
Reply:Well you should probably ask your teacher, because from experience they will sometimes have small caveats that will screw up your answers and you'll say "well that's what the book says! and everyone on Y!A!" and your teacher will just look at you and say "but that's not what **I** said"

land survey

No comments:

Post a Comment