April 2017

Control Structures in Java

  • Satish 

1. Overview In the most basic sense, a program is a list of instructions. Control structures are programming blocks that can change the path we take through those instructions. In this tutorial, we’ll explore control structures in Java. There are three kinds of control structures: Conditional Branches, which we use for choosing between two or more paths. There are three types in Java: if/else/else if, ternary operator and switch. Loops that are used to iterate through multiple values/objects and repeatedly run specific code blocks. The basic loop types in… Read More »Control Structures in Java

Concrete Class in Java

  • Satish 

1. Introduction In this quick guide, we’ll discuss the term “concrete class” in Java. First, we’ll define the term. Then, we’ll see how it’s different from interfaces and abstract classes. 2. What Is a Concrete Class? A concrete class is a class that we can create an instance of, using the new keyword. In other words, it’s a full implementation of its blueprint. A concrete class is complete. Imagine, for example, a Car class: public class Car { public String honk() { return “beep!”; } public… Read More »Concrete Class in Java