Python program to check leap year
What is a leap year? A normal year has 365 days but when an year has 366 days, it is said to be a leap year. A leap year comes…
What is a leap year? A normal year has 365 days but when an year has 366 days, it is said to be a leap year. A leap year comes…
This article will explain 3 ways in which you can write a java program to calculate the sum of first n even numbers. In the example programs given in this…
Finding the sum of digits of a number involves iterating over the number, getting each digit of the number and adding it to a sum. But this approach requires a…
Many times we need to change the look and feel of an element in response to an event. This means that we need to apply dynamic style to an element…
Applying style or CSS classes dynamically in angular is an important feature and makes an application flexible and powerful. There are different methods in which styles can be applied to…
What is auto increment Auto increment is an option which automatically generates the value of a column. MySQL provides AUTO_INCREMENT option to mark a column as auto increment. When a…
Swapping the values of two variables means exchanging their values so that the value of first variable is replaced by the second variable and the value of second variable is…
toString() method is used to convert an object to its String representation. You can call this method on a String, a StringBuffer, a java.sql.Connection object or an object of your…
Before trying to understand constructor chaining, it is suggested to understand what a constructor is, in case you are not familiar. What is constructor chaining Constructor chaining means calling one…