Karteikarten
CE203
Karten in diesem Stapel (18)
- 1Print from Database Table
- 2Insert to Database table
- 3Method Overloading• Can supply several definitions for a method within the same class.
• As long as each one has different input types.
• Statically bound - 4Specialisation & Interfaces• Both provide support for polymorphism
• Both define methods that can operate on different types
• Implemented through dynamic binding - 5Dynamic Binding• When a method is redefined
• And the method is called on an object
• The closes definition to the object, in the object class, is applied - 6Abstract classes• Partial specifications
• Cannot be instantiated
• Must contain at least 1 abstract method
• Subclass can be instantiated if they apply full definitions for methods
• Can only be inherited from
• Using extends - 7Interface• Extreme example of an abstract class
• Can only have public static final variables (constants)
• Cannot have a constructor
• Can only be implemented
• Can only extend other interfaces
• Methods cannot be static - 8ActionListener
- 9Event-Related Programming• Procedural programming
• Methods call other methods
• Event-driven programming
• After initialisation, the program waits for events to occur
• Cannot determine execution order by examining code - 10CompareTo Implementation
- 11Generics• Allows a type or method to operate on various types of object
- 12Genereics - Type parameter• Type parameter - <>
• Tells compiler that when List interface is invoked, the type parameter should be replaced with a type argument - 13Exceptions: Checked vs Unchecked• Checked
• Checked at compile time
• Must implement exception handling
• FileNotFoundException, IOException
• Unchecked
• Cannot be checked at compile time
• Should implment exception handling
• Error, RuntimeException - 14CAP• Consistent
• Availible
• Partition Tolerant - 15Exceptions
- 16Delete from Database Table
- 17Java Security Manager• Java is designed to work in a distributed environment
• Code can be downloaded dynamically untrusted sources
• Running such code alongside
confidential information is risky
• Security built into Java via access control - 18Iterate through TreeSet Values
Informationen
- Beschreibung
- Karteikarten am CE203, erstellt von B O U Y B O Y am 20/05/2019.
- Erstellt von
- B O U Y B O Y
- Aufrufe
- 1
- Bewertung