Sponsored Link •
|
Advertisement
|
Advertisement
|
This page contains an archived post to the Java Answers Forum made prior to February 25, 2002. If you wish to participate in discussions, please visit the new Artima Forums.
Message:
> .State which of the following statements are True Sure it does: static final int ROWS = 5; // now add them to a panel (theSquare), applet or whatever: // for each array element for (int c = 0; c < COLS; c++) now you have an array of buttons to press! > (2) StringBuffer class is alternative to String class here's a quote from http://java.sun.com/j2se/1.3/docs/api/index.html "public final class StringBuffer > (4) You cannot instantiate objects of interfaces or abstract classes. > we can even instantiate interface.(BILL BROGDEN EXAM CRAM) 'fraid not. Consider the common interface ActionListener, you cannot have a new ActionListener() ie instantiate an ActionerListener object becuase it has no constructor. On the other hand you MUST implement its abstract methods if you use the interface and don't have an actionPerformed(ActionEvent e) method it won't compile. Hope this helps. As to your later submission about true and false... true is true and false is false!! No further help available... (not here anyway) best wishes and good luck on future tests richard Replies: |
Sponsored Links
|