Java Stacks

Similar Posts

  • Console Inputs in Java

    Reading from the console is something that most people learn to do in a single line or two of code in most languages. However, Java is not most languages… Consider Python: C++ Java So what is going on with that? System.in So lets start with the System.in. This is the console input stream object, just…

  • Java IO Streams

    Java IO Streams represent either an input source, or an output destination where you are trying to send receive/data. This can be to a console window, reading a file from a disk (or SSD), network communication, etc. Java uses the concept of IO streams, and how to handle them, almost identically between all sources. This…

  • Inheritance in Java

    As you’ve seen in the UML class relationships, there is the ability to define a class, and a subclass. The subclass will get all of the properties and methods of the parent class, and can then add additional properties and methods that are not available in the parent. Consider two classes, a Shape2D and a…

  • Java Interfaces

    A Java Interface, as first glance, may look similar to a class. However, there are important differences, not only in how it is used, but in defining it from a class that make it worth noting. Uses of an Interface Java prevents a developer from extending a Class with two or more classes. This is…