mode 2 Flashcards
What is a Singleton?
Singleton is a DESIGN PATTERN
It isn’t a keyword or syntax in java, it’s a way to construct your code to achieve a greater effect. In short, it’s a strategy not a keyword.
What is the Factory Design Pattern
Another design pattern you should be aware of is the “Factory Design Pattern”. The purpose of the factory design pattern is to produce other objects
a Factory can ALSO keep track of upkeep variables and statistics variables for the target class
What is Logging?
In Java, logging is an important feature that helps developers to trace out the errors. We use log4j for our purposes
What is a usecase for log4j?
try { //stuff }catch(Exception myExcep) { loggy.error("I think my catch block just triggered", myExcep); }
What is Automated Testing
Testing allowing us to test different aspects of our code base.
There a lot of different kinds of testing in Java;
Smell Testing, Security Testing, Integrated Testing, Unit Testing
What is JUnit?
JUnit is a unit testing framework for the Java programming language.