FinalExam - Programming Fundamentals for CIS Majors II CIS...

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

View Full Document Right Arrow Icon
Programming Fundamentals for CIS Majors II CIS 3023 Summer 2010 Final Exam Section –A (Written) [30 pts] Answer the following questions as briefly as possible : 1. What is the difference between shallow copy and deep copy? [3 pts] 2. Match the following three properties of Object Oriented Programming: [3 pts] ENCAPSULATION , INHERITANCE, POLYMORPHISM I am the capability of a method to do different things based on the object that it is acting upon. Who am I? I am the capability of a class to use the properties and methods of another class while adding its own functionality. Because of me coding is often made simpler and cleaner. Who am I? I am defined as “hiding internal data from the outside world, and accessing it only through publicly exposed methods.” Who am i? 3. Consider the ubiquitous Java phrase: “public static void main(String[] args) {….}” and answer the following questions: [2x3 = 6 pts] (a) What is the difference between static and final. (b) Can a method be declared “abstract static”? Why or why not? (c) Can a method be declared “abstract final”? Why or Why not?
Background image of page 1

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

View Full DocumentRight Arrow Icon
4. Answer true of false: [6 pts] (i) __________ An abstract class cannot be instantiated. (ii) __________ An interface cannot be instantiated. (iii) __________ An interface can have instance variables. (iv) __________ Java does not support multiple class inheritance. But it does support multiple interface inheritance. (v) __________ When a method is added to an interface, all classes that implement the interface MUST also implement the method. (vi) __________ Classes that implement interfaces cannot be instantiated. 5.
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 05/27/2011 for the course CIS 3023 taught by Professor Dobbins during the Summer '08 term at University of Florida.

Page1 / 5

FinalExam - Programming Fundamentals for CIS Majors II CIS...

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