Programming Worksheets - Create Printable Tests and Worksheets

Create printable tests and worksheets from Programming questions. Select questions to add to a test using the checkbox above each question.

The Programming questions below are in the following grade level(s): College Continuing Education
previous page 1 2 3
  • What are some of the differences between and Interface and an Abstract class?
    • An abstract class can have instance methods that implement a default behavior.
      An interface can only declare constants and instance methods, but cannot implement default behavior. An interface has all public members and no implementation.
      An abstract class may have private, protected, etc. members, but has some abstract methods.
  • What are some differences between XML and HTML?
    • HTML
      1. Defined set of tags designed for web display
      2. Format driven
      3. End tags not required
      4. Quotes not required
      5. Slash not required in empty tags

      XML
      1. User definable tags
      2. Content driven
      3. End tags required for well formed documents
      4. Quotes required around attributes values
      5. Slash required in empty tags
  • What is the different between a StringBuilder and a StringBuffer?
    • The StringBuilder class provides an API compatible with StringBuffer, but with no guarantee
      of synchronization. This class is designed for use as a drop-in replacement for
      StringBuffer in places where the string buffer was being used by a single thread
      (as is generally the case). Where possible, it is recommended that this class
      be used in preference to StringBuffer as it will be faster under most
      implementations.
previous page 1 2 3