Core Java : Intermediates


1. What is the range of sort data type in Java?




2. What is the range of byte data type in Java?




3. Which data type value is returned by all transcendental math functions?




4. In java string is ________




5. What will be the output of the code ________?


    class test
        
        {
        
            public static void main(String args[])
        
            {
                double a, b,c;

                a = 5.0/0;

                b = 0.0/0;

                c=0/0.0;
    
                System.out.println(a);

                System.out.println(b);

                System.out.println(c);

            }

        }



6. What will be the output of the code ________?


    class increment_test
        
        {
        
            public static void main(String args[])
        
            {
                int a = 5;

                System.out.print(++a*9);

            }

        }



7. What will be the output of the code ________?


    class area_test
        
        {
        
            public static void main(String args[])
        
            {
                double r, pi, a;

                r = 9.8;
                 
                pi = 3.14;
                
                a = pi * r * r;
                 
	        System.out.println(a);

            }

        }



8. Boolean variable containes ________ of values?




9. Which of these occupy first 0 to 127 in Unicode character set used for characters in Java?




10. Which of the following is a valid declaration of a boolean statement?