Comment on Tutorial - The switch Statement example in Java By Kamini
Comment Added by : Nick Scroggs
Comment Added at : 2013-03-26 01:44:04
Comment on Tutorial : The switch Statement example in Java By Kamini
@Jai Shankar K
I'm guessing you are not really that familiar with leap years. That's not to be unexpected, after all you're probably not over 113 years old, hell maybe you are not ever 13 years old. However the person who wrote this example knows that when a year is divisible by 100 (ie 500, 1600, 1700, 2000 etc) it may or may not be a leap year. If leap years were every 4 years, then over hundreds or years we would add too much time. Every 400 years our calendar would be off by an additional 3 days. To adjust for this, if a year is divisible by 100 and not by 400 then it is NOT a leap year. If the last two numbers are '00', then only years which are divisible by 400 are leap years. So, only the years 400, 800, 1200, 1600, and 2000 were leap years. 1500, 1700, 1800, and 1900 were not.
There are also leap seconds which are added every now and again for fine tuning.
View Tutorial
- Data Science
- Android
- AJAX
- ASP.net
- C
- C++
- C#
- Cocoa
- Cloud Computing
- HTML5
- Java
- Javascript
- JSF
- JSP
- J2ME
- Java Beans
- EJB
- JDBC
- Linux
- Mac OS X
- iPhone
- MySQL
- Office 365
- Perl
- PHP
- Python
- Ruby
- VB.net
- Hibernate
- Struts
- SAP
- Trends
- Tech Reviews
- WebServices
- XML
- Certification
- Interview
categories
Related Tutorials
Java program to get location meta data from an image
Program using concept of byte long short and int in java
Update contents of a file within a jar file
Tomcat and httpd configured in port 8080 and 80
Count number of vowels, consonants and digits in a String in Java
Student marks calculation program in Java
Calculate gross salary in Java
Calculate average sale of the week in Java
Vector in Java - Sample Program
Archived Comments
1. Hi i am sanjay ,
I got the exact difference
View Tutorial By: Sanjay Patel at 2012-05-06 11:36:00
2. hi can u send me the complete working code for sen
View Tutorial By: Amit Adhikaree at 2011-03-22 17:47:49
3. Muchas gracias por compartir informacion. :)
View Tutorial By: Anonymous at 2009-05-21 08:48:47
4. hi,
can you tell me how to run the code to
View Tutorial By: raghu at 2008-12-26 03:15:52
5. Very nice.
Thanks
View Tutorial By: Kaviya at 2015-02-23 13:48:15
6. Hello Nishi,
The class names in your progra
View Tutorial By: Kiran at 2011-12-16 06:32:54
7. thank u. it is very useful for users
View Tutorial By: c.balasubramani at 2008-09-24 03:55:47
8. i am new to java, please send simple programs, and
View Tutorial By: jegan at 2011-07-11 02:22:37
9. imgView.setBackgroundResource(R.drawable.ani); i g
View Tutorial By: mamu at 2012-10-18 14:41:31
10. To determine current location in a file:
{<
View Tutorial By: Terry at 2009-09-27 13:15:56