MidtermF2002A

MidtermF2002A - CIS 602 Midterm Examination Fall 2002 A...

Info iconThis preview shows pages 1–3. Sign up to view the full content.

View Full Document Right Arrow Icon
CIS 602 Midterm Examination Name: _______________________________ Fall 2002 A ID#: _________________________________ Part I. True or False. (20 points – 1 each) 1. True or False: The size of a String object may be changed. 2. True of False: A non-abstract class must contain non-abstract methods. 3. True or False: An abstract class must contain abstract methods. 4. True or False: An abstract method must be overridden in a non-abstract child class. 5. True or False: An abstract method cannot be overloaded in a child class. 6. True or False: An inner class has access to the private variables defined in its container class. 7. True or False: A child class has access to the private variables defined in its parent class. 8. True or False: An interface is a protocol by which two unrelated objects communicate. 9. True or False: A final method can be overridden in a child class. 10. True or False: A final method can be overloaded in a child class. 11. True or False: A Just in Time (JIT) compiler compiles code line by line as the program runs. 12. True or False: There is an adapter class for each listener interface. 13. True or False: A class can implement no more than one interface. 14. True or False: The Serializable interface specifies one method. 15. True or False: Each of the eight primitive data types has an associated object wrapper. 16. True or False: An object may invoke a protected member of its parent from another package. 17. True or False: The default layout manager for an application is BorderLayout. 18. True or False: Constructors may be over-ridden in a child class. 19. True or False: A static method may be overridden in a child class. 20. True or False: A checked exception is one that extends RuntimeException. 1
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Part II. Multiple Choice. (60 points – 3 each) 21. What will be the result of trying to compile and run the following application? public class Hello{ public static void main(String args[]){ System.out.println(“Hello World”); } } a. The compiler will report an error. b. The class will compile without error but the program will not run. c. The class will compile and run, writing nothing to the standard output. d.
Background image of page 2
Image of page 3
This is the end of the preview. Sign up to access the rest of the document.

This note was uploaded on 03/31/2008 for the course CIS 602 taught by Professor Nicholson during the Spring '08 term at NJIT.

Page1 / 7

MidtermF2002A - CIS 602 Midterm Examination Fall 2002 A...

This preview shows document pages 1 - 3. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online