Karteikarten
CSC20 Programming Terms (Final)
Karten in diesem Stapel (23)
- 1What is an abstract class?A class that can't be instantiated
- 2What does static mean in Java? What does it NOT mean?~One per class
~NOT one for each object no matter how many instances of a class may exist - 3What is an immutable object?An object whose state cannot be modified after it is created
- 4What's the difference between checked/unchecked exceptions in Java?~Checked: Need to be handled explicitly. Try/Catch block or Throw keyword required
~Unchecked: Exceptions that have no obligation to be handled - 5Does it matter what order catch statements FileNotFoundException and IOException are written? Why?Yes. FileNotFoundException is inherited from IOException, and the subclasses have to be caught first
- 6What is serialization?The process of converting an object into a sequence of bits so that it can be stored in a file
- 7What is a transient variable?A variable that may NOT be serialized
- 8What are the three principles of OOPS?Polymorphism, Inheritance, and Encapsulation
- 9What's the difference between a stack and queue?~Stack: Last-in, first-out
~Queue: First-in, first-out - 10What is a parameterized class?A class that has type parameters
- 11T/F: Set is a super type of SetFalse
- 12T/F: Object[] is a super type of String[]True
- 13What types can't be used as type arguments?Primitive types
- 14T/F: Generics are a compile time featureTrue
- 15What is a polymorphic assignment?Assigning a subclass object to a super class variable
- 16T/F: Polymorphism is a compile time featureFalse
- 17What's the difference between Swing and AWT?~Swing: Light-weight components (works more efficiently)
~AWT: Heavy-weight components - 18What is a stream?A sequence of units of data coming from or going to an I/O device
- 19What are the types of streams?Text and Binary
- 20What method is used to specify a container's layout?setLayout()
- 21What event results from the clicking of a button?ActionEvent
- 22What is a layout manager?AWT software components which have the ability to lay out widgets/components by their relative positions
- 23Give 4 examples of layout managers available in Java AWT?BorderLayout, CardLayout, GridLayout, FlowLayout, GridBagLayout, etc.
Informationen
- Beschreibung
- Computer Science Karteikarten am CSC20 Programming Terms (Final), erstellt von Michael Burns am 11/12/2019.
- Erstellt von
- Michael Burns
- Aufrufe
- 0
- Bewertung