My Report

Java Programming Practice Test 4


Correct Answer: 2 points | Wrong: -1 point
Grades: A* (100% score) | A (80%-99%) | B (60%-80%) | C (40%-60%) | D (0%-40%)
advertisement

1. What will be the output of the following Java code?

   
    class Output 
    {
        public static void main(String args[])
        {
            Double i = new Double(257.5);  
            boolean x = i.isNaN();
            System.out.print(x);
        }
    }

2. Which of these methods is used to obtain value of invoking object as a long?

3. Which of these class can be used to implement the input stream that uses a character array as the source?

4. Which of these methods is used to check for infinitely large and small values?

5. Which of these exceptions handles the situations when an illegal argument is used to invoke a method?

6. Which of the following is a method of wrapper Float for converting the value of an object into byte?

7. Which of these methods of Byte wrapper can be used to obtain Byte object from a string?

8. Classes and Methods are stored in which space?

9. Which of the following methods return the value as a double?

10. Which class loader loads jar files from JDK directory?


 

Manish Bhojasia - Founder & CTO at Sanfoundry
Manish Bhojasia, a technology veteran with 20+ years @ Cisco & Wipro, is Founder and CTO at Sanfoundry. He lives in Bangalore, and focuses on development of Linux Kernel, SAN Technologies, Advanced C, Data Structures & Alogrithms. Stay connected with him at LinkedIn.

Subscribe to his free Masterclasses at Youtube & discussions at Telegram SanfoundryClasses.