Open in app

Sign In

Write

Sign In

Anton Suprun
Anton Suprun

7 Followers

Home

About

Jul 13, 2021

Java: NullPointerException

Introduction Exceptions in Java are events that occur when there is disruption to the normal flow of the program and the null pointer exception is one of these events. The NullPointerException occurs when a reference variable should point to an object but instead it points to null. …

Java

2 min read

Java: NullPointerException
Java: NullPointerException
Java

2 min read


Jul 12, 2021

Java: Polymorphism

Introduction Polymorphism refers to an objects ability to take on different forms. In Java, it is a simple, yet fundamental concept of objected oriented programming. In order to understand polymorphism, it is important to have a solid grasp of inheritance and interfaces in Java. What is polymorphism? A class is considered to be polymorphic…

Java

2 min read

Java: Polymorphism
Java: Polymorphism
Java

2 min read


Jul 7, 2021

Java: public, private, protected

Introduction Access modifiers in Java are keywords that are used to specify the accessibility of fields, methods, constructors and classes. There are four access modifiers, each specifying a certain level of accessibility: public: can be accessed from anywhere 2. protected: can be accessed from within the class itself, the package and…

Java

2 min read

Java: public, private, protected
Java: public, private, protected
Java

2 min read


Jul 6, 2021

Java: Interfaces

Read this to ace every interview question regarding interfaces. What are interfaces? An interface is a reference type similar to a class but different in a sense that it can only contain abstract methods, default methods, static methods, (only default and static methods in interfaces can have a method body)…

Java

4 min read

Java: Introduction to Interfaces
Java: Introduction to Interfaces
Java

4 min read


Jun 18, 2021

Packages in Java

Introduction Packages in Java correspond with the directory structure in your project. They are used to group and control accessibility of related classes, interfaces and sub-packages. Why use packages? The advantages of using packages are: Better access control: Packages equip the developer with better access control. Avoid name conflicts: Using packages prevents you from…

Java

3 min read

Packages in Java
Packages in Java
Java

3 min read


Jun 18, 2021

What is inheritance in Java?

In Java, a class can be derived from an existing class and when that happens, the derived class inherits the fields and the methods from that existing class. In Java, and many other languages, this is called inheritance. The class that is derived from an existing class is often referred…

Java

5 min read

What is inheritance in Java?
What is inheritance in Java?
Java

5 min read


Jun 16, 2021

Java: toString Method

Before we begin discussing the toString method, it is important to have a basic understanding of the class hierarchy in Java. All classes in Java inherit from the Object class; the Object class is at the root of the class hierarchy in Java.

Java

3 min read

Java: toString Method
Java: toString Method
Java

3 min read


Jun 15, 2021

Java: String Builder

In Java, as is the case with most programming languages, strings are immutable; once a string is initialized with a value, it cannot be changed. StringBuilder What is it and when should I use it? Take a look at the following code for instance:

Java

2 min read

Java: String Builder
Java: String Builder
Java

2 min read


Jun 14, 2021

Java: static and final keywords

Static and final keywords in Java are at the core of the language and it is important to have an in-depth understanding of their function. static variables If you’ve every written a Java program of any scale, you’ve come across the “static” keyword. Your first program probably looked something like this:

Java

4 min read

Java: static and final keywords
Java: static and final keywords
Java

4 min read


Dec 22, 2020

Introduction To Binary Trees

In this short article, I am going to introduce and implement the binary tree data structure. I will also answer questions such as “What is a full binary tree and what is a complete binary tree?”and “How do I traverse a binary tree?”. First, let’s cover the basic definition of…

Data Structures

4 min read

Introduction To Binary Trees
Introduction To Binary Trees
Data Structures

4 min read

Anton Suprun

Anton Suprun

7 Followers

Computer Science Student, Programming Enthusiast

Help

Status

Writers

Blog

Careers

Privacy

Terms

About

Text to speech

Teams