Java - Online Test - Data types - javasearch.buggybread.com


Share

Search Java Test Questions


 223 test questions in repository.




Java - Test Questions on 'data types' - 4 questions found


What is the size of long data type ?Core Java
16 bit
32 bit
64 bit
128 bit

  java  data types

What is the size of double type ?Core Java
16 bit
32 bit
64 bit
128 bit

  java  data types

What is the size of short type ?Core Java
8 bit
16 bit
32 bit
128 bit

  java  data types

What will be the output of following ?

public class BuggyBread {

   private int x;
   private Integer y;

   BuggyBread(int x,int y){};

   public static void main(String[] args){
      BuggyBread buggybread = new BuggyBread(1,2);
      System.out.println(buggybread.x);
      System.out.println(buggybread.y);
   }
}
Core Java
0 0
0 null
null 0
null null

  default values







comments powered by Disqus