Inheritance is one of the key features of Object Oriented Programming ( OOP ). The main idea behind the Inheritance is Code Re-use. Inheritance allows a class to use the properties andRead More…
What are Constructors?
Java constructors are special methods that are called when an object is instantiated. In other words, when you use the new keyword. The constructor initializes the newly created object. Here is aRead More…
Why Exception handling?
What is an exception? An Exception can be anything which interrupts the normal flow of the program. When an exception occurs program processing gets terminated and doesn’t continue further. In suchRead More…
Static Variable
A static variable is one that’s associated with a class, not objects of that class.Static variable’s value is same for all the object(or instances) of the class or in other words youRead More…
Watch for infinite loop
Loop mechanisms are useful for repeatedly executing blocks of code while a Boolean condition remains true. Syntax of while loop while (Boolean expression) { statement(s) //block of statements } The while statementRead More…
“I Don’t Speak Your Language”
If you’ve just started learning programming languages you’ll probably have heard a lot of talk about frontend and backend programming.But what exactly do we mean by this?If you’re a beginner in theRead More…
The 9 Most In-Demand Programming Languages of 2017
Do a google serach for popular programming language of 2017, you will get so many search results with lot of varation in results. There are many ways to rank programming languages, likeRead More…
Reversing a string
This article will show you how to reverse a string in JAVA. There may be various ways to get to the solution but I am showing 2 easy ways to reverse aRead More…
Even or Odd?
It’s very easy to check Even or Odd Number. You take the number and divide it by 2, If the number is divisible by 2 it’s an even number else itRead More…
First Java Program
In this tutorial, we will see how to write, compile and run a java program. I will also cover java syntax, code conventions and several ways to run a java program. publicRead More…