CS 3304: Comparative Languages
Object-Oriented Programming
[
Course Documents
] : [
Object-Oriented Programming
]
Previous
Contents
Next
Keyword Index
Java
General Characteristics
All data are objects except the primitive types
All primitive types have wrapper classes that store one data value
All objects are heap-dynamic, accessed through reference variables, and most are allocated with new
Inheritance
Single inheritance only, but there is an abstract class category (interfaces) that provides some of the benefits of multiple inheritance
An interface can include only method declarations and named constants (pure abstract class)
Methods can be final (cannot be overriden)