Skip to content

Java Developer & Webmaster

Gordan Grgic

Core Java Programming (JCP)

Core Java Programming (JCP)

This was my first serious subject at ITAcademy and also my introduction to Java. I learned the basics of object-oriented programming:

Code Example

class Animal {
    void sound() { System.out.println("Some sound..."); }
}
class Dog extends Animal {
    @Override void sound() { System.out.println("Woof!"); }
}
public class Main {
    public static void main(String[] args) {
        Animal dog = new Dog();
        dog.sound(); // Woof!
    }
}