Java Program For Number System

Get Job-ready: Java Course with 45+ Real-time Projects! - Learn Java

program 1

class TestInteger
{
   public static void main(String args[])
  {
          //      int a=013,b=010,c;
          ///      c=a+b;
            //    System.out.println(c);  
                   int a=0x1A;
                System.out.println(a);
//                   int a=015,b=0x23,c;
 //                      c=a+b;
  //                System.out.println(c); 

 }
}

If you are Happy with DataFlair, do not forget to make us happy with your positive feedback on Google

courses

TechVidvan Team

TechVidvan Team provides high-quality content & courses on AI, ML, Data Science, Data Engineering, Data Analytics, programming, Python, DSA, Android, Flutter, full stack web dev, MERN, and many latest technology.

Leave a Reply

Your email address will not be published. Required fields are marked *