1/44
Looks like no tags are added yet.
Name | Mastery | Learn | Test | Matching | Spaced |
|---|
No study sessions yet.
anyone can build a software to last a month, but it takes a good developer to design software that is _________
stable and long lived
what are the phases of learning programming?
Programming principles, Design principles, Object oriented concepts
what is OOP?
OOP is a programming paradigm based on defining, creating, and manipulating objects to develop feasible software
What does APIE stand for?
Abstraction, Polymorphism, Inheritance, Encapsulation
design principles are a set of _______
high level guidelines
3 design principles?
Open-close principle
Favor composition over inheritance
Liskov substitution principle
what does each pattern describe (design)?
a problem that occurs frequently in our environment, and the solution to said problem, in such a way that you can use that solution a million times over and never repeat yourself
what are 3 design patterns?
State design pattern, memento design pattern, composite design pattern
A pattern has four essential elements:
pattern name, problem, solution, consequences
the problem describes?
when to apply a pattern
true or false: the solution to a pattern describes a concrete design or implementation
false
consequences often concern?
space and time
T/F: there can only be one top level public class per file in java?
True
Package _______
com.yourCompanyName
the java programming language is ______-typed
statically
what does statically typed mean?
the variables must first be declared before they can be used
primitive data types:
boolean, char, byte, short, int, long, float, double
T/F: It's not always necessary to assign a value when a field is declared
True, considered bad programming practice
T/F: the compiler assigns a default value to an
uninitialized local variable
False
how to print in java?
system.out.println()
main function args?
public static void main(String [] args)
you can call a constructor from another constructor using ____ keyword
this()
the new operator returns a what
returns a reference to the object that was created in heap memory
to inherit a calls, use the _____ keyword
extends
override annotation is _____
@override
T/F: every class has Class Object as a superclass
True
packages are _____ for classes
containers for classes
the toString method for Class Object returns what?
a string consisting of the name of the class for the object instance
the @ sign character
unassigned hexadecimal representation of the hash code of the object
in java, strings are:
objects
The static keyword is used to create fields and methods that belong to the _______ rather than ________
class, to an instance of the class
a final class cannot be _____
subclassed
Abstract classes
cannot be instantiated, but they can be ____
subclassed
in the interface, all elements of the body are what?
static and final
can you instantiate an instance of an interface class?
no
with interfaces, all fields are automatically:
public, static, final
You can extend only
___ class, whereas
you can implement
______
interfaces
only one class, any number of interfaces
when to use abstract class?
share code between closely related classes
want to declare non static or non final fields
require other access modifiers besides public
Wrapper classes provide a way to use _______ data types as ______
primitive, objects
T/F: Generic does not allow using primitive types
True
List interface includes operations for:
iteration, search, positional access, range-view
what is an Array List?
A resizable array implementation of a List interface