Command Line PSA: Watch out for Traps

There are a few commands that new CLI (command line interface) users should watch out for. Usually it starts with searching for a specific command online and long behold someone has an answer for you on an unknown forum. The command is:

rm -rf /

Or if you are on Windows ...

View comments.

more ...

Java: Interface vs. Abstract Class

Date Category dev Tags java

Interface

Features

  • Multiple inheritance
  • Does not provide any code
  • static final constants
  • A class implements an Interface
  • Usually describe peripheral abilities of a class

Example

An Automobile class can implement an Automatic interface.

When To Use

Usually when something in the design will change frequently, such as a file format ...

View comments.

more ...