What is inner or nested class?
An inner class or nested class is a defined entirely within the body of another class. If an object is created using a class, the object inside the root class can be used. A class can have more than one inner classes, but in general inner classes are avoided.
What is static import?
The static import declaration is analogous to the normal import declaration. Where the normal import declaration imports classes from packages, allowing them to be used without package qualification, the static import declaration imports static members from classes, allowing them to be used without class qualification.
How to design algorithms?
Algorithm design isn’t easy, but it’s not impossible either. People who design algorithms don’t sit around looking for problems to solve, they are usually already involved in projects when a problem arises that requires a solution. This might not sound that hard because people tend to put algorithms in the same class as functions. However, they are not functions, they are efficient paths to handling data as accurately and quickly as the computer allows. It takes a special kind of person to design algorithms because the new algorithm has never been used before, and the designer is putting himself on a whole new path. Students at a college of engineering and computer science are likely to develop many algorithms during their study. It’s advantageous to look at other algorithms or written functions but your ultimate goal is to produce an algorithm that solves problems as efficiently as possible.