GoConqr has a new look! Let us know what you think.

Flashcards

CSC20 Programming Terms (Final)

Michael Burns Computer Science English 23 cards

Cards in this deck (23)

  1. 1What is an abstract class?A class that can't be instantiated
  2. 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
  3. 3What is an immutable object?An object whose state cannot be modified after it is created
  4. 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
  5. 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
  6. 6What is serialization?The process of converting an object into a sequence of bits so that it can be stored in a file
  7. 7What is a transient variable?A variable that may NOT be serialized
  8. 8What are the three principles of OOPS?Polymorphism, Inheritance, and Encapsulation
  9. 9What's the difference between a stack and queue?~Stack: Last-in, first-out
    ~Queue: First-in, first-out
  10. 10What is a parameterized class?A class that has type parameters
  11. 11T/F: Set is a super type of SetFalse
  12. 12T/F: Object[] is a super type of String[]True
  13. 13What types can't be used as type arguments?Primitive types
  14. 14T/F: Generics are a compile time featureTrue
  15. 15What is a polymorphic assignment?Assigning a subclass object to a super class variable
  16. 16T/F: Polymorphism is a compile time featureFalse
  17. 17What's the difference between Swing and AWT?~Swing: Light-weight components (works more efficiently)
    ~AWT: Heavy-weight components
  18. 18What is a stream?A sequence of units of data coming from or going to an I/O device
  19. 19What are the types of streams?Text and Binary
  20. 20What method is used to specify a container's layout?setLayout()
  21. 21What event results from the clicking of a button?ActionEvent
  22. 22What is a layout manager?AWT software components which have the ability to lay out widgets/components by their relative positions
  23. 23Give 4 examples of layout managers available in Java AWT?BorderLayout, CardLayout, GridLayout, FlowLayout, GridBagLayout, etc.

Information

Description
Computer Science Flashcards on CSC20 Programming Terms (Final), created by Michael Burns on 11/12/2019.
Created by
Michael Burns
Views
0
Rating

Feedback

What is it about?

What do you think of the new look?

How do you like it?