Intro to Network Programming with Java

Similar Posts

  • Java Constructors

    Each object has a special method called a constructor. The constructor can be overloaded as necessary. Typically, you will have a default constructor (sometimes called a no-arg constructor), where no parameters is passed to the constructor. This special method is used to constructor an object when it is created. It is very similar to a…

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

  • Overloading Java Methods

    As was mentioned briefly in talking about Java Instance Methods, you can overload a Java method, just as you would overload a C++ function/method. (C doesn’t allow for overloading, only C++). Since there is no method prototype, it is easy to just write your new method. I like to group my overload methods together, so…

  • Class Methods in Java

    In object oriented programming, you consider the object which you are programming about, for example, a car. You then consider the attributes about the object, for example, the make, model, color, year built, etc. You also have consider the operations of the object. i.e. What can it do? A car for example could turn on…

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