@MD_ItteshamItte/

java program

Java

No description

fork
loading
Files
  • Main.java
Main.java
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
// Java program to illustrate 
// how arithmetic operations performed 
// depends on data types 
public class Test  
{ 
    public static void main(String[] args) 
    { 
        byte b = 10; 
          
        // Using b = b+1 
        b = b + 1; 
        System.out.println(b); 
          
        /* Using typecasting will work 
        b=(byte)b+1; 
        System.out.println(b);*/
    } 
}