Naming Convention Best Practices
Coding conventions serve the following purposes: They create a consistent look to the code, so that readers can focus on content, not layout. They enable readers to understand the code more quicklyRead More…
Coding conventions serve the following purposes: They create a consistent look to the code, so that readers can focus on content, not layout. They enable readers to understand the code more quicklyRead More…
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…
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…
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…
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…
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…
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…
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…
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…
JAVA was developed by Sun Microsystems Inc in 1991, later acquired by Oracle Corporation. It was developed by James Gosling and Patrick Naughton. It is a simple programming language. Writing, compiling andRead More…