References to Objects in Java

Similar Posts

  • Arrays in Java

    We’ve talked about arrays, now let’s look at how they are created in Java. In a general form, you can find something like below: Obviously type would be something like int, float, or even a class name as you can have an array of objects. Declaring an Array This means that the following are ways…

  • 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’s main Method

    Just like in C++, each executable Java project should have a main method. This isn’t just the “main” method that is run, but an actual method called main(). If you look at the previous page for creating a file, we can start from there. This will be a little different from the C++ main method,…

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