CMSC 132A Lecture Notes - Lecture 1: Type Safety, Java Collections Framework, Type System

27 views6 pages

Document Summary

In any nontrivial software project, bugs are simply a fact of life. Careful planning, programming, and testing can help reduce their pervasiveness, but somehow, somewhere, they"ll always find a way to creep into your code. This becomes especially apparent as new features are introduced and your code base grows in size and complexity. Fortunately, some bugs are easier to detect than others. Compile-time bugs, for example, can be detected early on; you can use the compiler"s error messages to figure out what the problem is and fix it, right then and there. Runtime bugs, however, can be much more problematic; they don"t always surface immediately, and when they do, it may be at a point in the program that is far removed from the actual cause of the problem. In a nutshell, generics enable types (classes and interfaces) to be parameters when defining classes, interfaces and methods.

Get access

Grade+20% off
$8 USD/m$10 USD/m
Billed $96 USD annually
Grade+
Homework Help
Study Guides
Textbook Solutions
Class Notes
Textbook Notes
Booster Class
40 Verified Answers
Class+
$8 USD/m
Billed $96 USD annually
Class+
Homework Help
Study Guides
Textbook Solutions
Class Notes
Textbook Notes
Booster Class
30 Verified Answers

Related Documents