The Java Singleton Pattern

Similar Posts

  • Java Database Connectivity

    When developing a Java application which uses a database, you need to consider several things, such as are you developing the Java Application first, or the Database first? Which database are you going to use (Oracle, DB2, SQL Server, MySQL, etc) Regardless, you will need a JDBC driver for your Java application. Most likely this…

  • Console Output in Java

    Compared to some languages, you might find writing out basic output in Java…well…overly complex. However, once you understand Java, you will see that it is complex, but for a reason. Let’s first consider some languages you might have already seen. Each one of these prints “Hello World” to your console window. So how does Java…

  • Loops in Java

    Loops in Java work similarly to how you remember loops in C/C++ most likely. You have your counting loop (for), as well as your pretest conditional loop (while), and the conditional post test loop (do-while). Each of these work the same way you would expect them to in C/C++. For Loop The for loop is…

  • 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…