title: Integer Number too large in java int for the value 08 , but when I pass just 8 or 11,12,13 it is just fine
body: <p>Employee("Helen",16000,1965,08,03),compiler is throwing the error that integer number is too large for value : 08 but compiler has no problem with value 11 or just 8. </p>
  
  <pre><code>      import java.util.*;
        class Employee{
            private String name;
            private double salary;
            private Date hireDay;
  
                public Employee(String n, double s,int year, int month, int day){
                    name = n;
                    salary = s;
                    GregorianCalendar calendar = new GregorianCalendar(year,month-1,day);
                    hireDay = calendar.getTime();
                }
                public String getName(){
                    return name; 
                }   
                public double getSalary(){
                    return salary;
                }   
                public Date getHireDay(){
                    return hireDay; 
                }   
  
                public void raiseSalary(double byPercent){
                    double raise = salary * byPercent / 100;
                    salary += raise;
  
                }
  
        }
  
        public class EmployeeTest{
            public static void main(String[] args){
  
           Employee[] staff = new Employee[3];
            staff[0] = new Employee("Jack",15000,1992,03,07);
            staff[1] = new Employee("James",18000,1987,05,02);
      &gt;&gt;    staff[2] = new Employee("Helen",16000,1965,08,03);
  </code></pre>
  
  <p>// This is the problem.When I pass 08 it throws an error when I pass 08 or some two digit number it is find
                  }</p>
  
  <pre><code>Output :
  
      [shadow@localhost java]$ javac EmployeeTest.java 
      EmployeeTest.java:37: error: integer number too large: 08
          staff[2] = new Employee("Helen",16000,1965,08,03);
                                                     ^
      1 error
      [shadow@localhost java]$
  </code></pre>