Tuesday, 27 February 2018

Premitive Data types in java









package javaapplication3;



import java.util.Scanner;





public class JavaApplication3

{



 

    public static void main(String[] args)

    {

       byte b=127;

    System.out.println("value of byte variable is "+b);

    short s=32767;

    System.out.println("value of short variable is "+s);

    long l=659685085;

    System.out.println("value of long variable is "+l);

    int i=654654;

    System.out.println("value of int variable is "+i);

    float f=5.323232f;

    System.out.println("value of float variable is "+f);

    double d=543545435.43;

    System.out.println("value of double variable is "+d);

    char c='a';

    System.out.println("value of char variable is "+c);

    boolean bo=true;

    System.out.println("value of boolean variable is "+bo);

   

   

    }

   

}


No comments:

Post a Comment

Pass Dynamically Added Html Table Records List To Controller In Asp.net MVC

Controller Code: using System; using System.Collections.Generic; using System.Linq; using System.Web; using System.Web.Mvc; using ...