Home » Archives for Shaik Ashish

Author Archives: Shaik Ashish

Shaik Ashish
He completed his Bachelors Degree in Computer Applications. He is a freelancer, writer, Microsoft Certified in Python and Java. He enjoys Writing, Teaching, Coding in Java and Python, Learning New Technologies and Music.

Java Assert Keyword Example

1. Introduction In this article, let us understand the Assert Keyword in Java. An Assertion allows testing the correctness of any assumptions that have been made in the program. An assertion is achieved using the assert statement in Java. While executing an assertion, it is believed to be true. If it fails, JVM throws an error named AssertionError. It is mainly used for testing ...

Read More »

Java Final Keyword Example

1. Introduction In a programming language like Java, the word final is a keyword that is used as an access modifier before variables, methods, and classes. A keyword is a word that has special meaning for the compiler and cannot be used as an Identifier in a language. The final word can be used before a variable or before a ...

Read More »

Min Heap Java Example

1. Introduction In this post, we shall discuss Heap Data Structure and its implementation in Java. Heap is a binary tree-based data structure. Now let us understand each word in this sentence in greater detail. Tree:- A tree is a hierarchy based data structure, you have a certain order in placing the elements. Binary Tree:- A binary tree has a ...

Read More »

Unreachable Statement Java Error – How to resolve it

In this post, we shall look into Unreachable Statement Java Error, when does this occur and its resolution. 1. Introduction Unreachable Statement is an error raised as part of compilation when java compiler detects code which is never executed as part of execution of program. Such code is obsolete, unnecessary and therefore it should be avoided by the developer. This ...

Read More »

Polymorphism Java Example

In this post, we feature a comprehensive Polymorphism Java Example. 1. Introduction In word Polymorphism, the word Poly stands for ‘many’ and the word morph stands for ‘forms’. Polymorphism is the ability of an object to take on many forms. Polymorphism is the capability of an action or method to do different things based on the object that it is ...

Read More »

Simple while loop Java Example

1. Introduction With this example we are going to demonstrate how to use a simple while loop Java statement. The while statement continually executes a block of statements while a particular condition is true. In short, to use a simple while loop you should: Create a while statement that evaluates an expression, which must return a boolean value and has ...

Read More »