67

Runtime runtime = Runtime.getRuntime();

You can't get more Java than this.

Comments
  • 9
    I prefere
    Runtime runtime = new Runtime();
    runtime.getRuntime();
  • 1
    That's why I like Kotlin
  • 5
    Logger log = Logger.getLogger();
  • 2
    Needs more abstract factory building..
  • 0
    Wow, I recognize that all too well and must say I don't miss that BS at my current position
  • 1
    How would you guys do it in other languages? Just curious and want to learn
  • 5
    Runtime runtime = RuntimeFactory.makeRuntime(RuntimeMarshaller.class).newInstance();

    Now THAT's Java
  • 0
    @Niss might be a singleton
Add Comment