adplus-dvertising

Welcome to the java lang and java io MCQs Page

Dive deep into the fascinating world of java lang and java io with our comprehensive set of Multiple-Choice Questions (MCQs). This page is dedicated to exploring the fundamental concepts and intricacies of java lang and java io, a crucial aspect of Java Programming. In this section, you will encounter a diverse range of MCQs that cover various aspects of java lang and java io, from the basic principles to advanced topics. Each question is thoughtfully crafted to challenge your knowledge and deepen your understanding of this critical subcategory within Java Programming.

frame-decoration

Check out the MCQs below to embark on an enriching journey through java lang and java io. Test your knowledge, expand your horizons, and solidify your grasp on this vital area of Java Programming.

Note: Each MCQ comes with multiple answer choices. Select the most appropriate option and test your understanding of java lang and java io. You can click on an option to test your knowledge before viewing the solution for a MCQ. Happy learning!

java lang and java io MCQs | Page 1 of 26

Q1.
Which of these classes is not included in java.lang?
Discuss
Answer: (c).Array
Q2.
Which of these is a process of converting a simple data type into a class?
Discuss
Answer: (a).type wrapping
Q3.
Which of these is a super class of wrappers Double & Integer?
Discuss
Answer: (d).Number
Q4.
Which of these is a wrapper for simple data type float?
Discuss
Answer: (c).Float
Q5.
Which of the following is a method of wrapper Float for converting the value of an object into byte?
Discuss
Answer: (b).byte byteValue()
Q6.
Which of these methods is used to check for infinitely large and small values?
Discuss
Answer: (a).isInfinite()
Q7.
Which of the following package stores all the simple data types in java?
Discuss
Answer: (a).lang
Q8.
What is the output of this program?
    class isinfinite_output 
    {
        public static void main(String args[]) 
        {
            Double d = new Double(1 / 0.);  
            boolean x = d.isInfinite();
            System.out.print(x);
        }
    }
Discuss
Answer: (c).true
Q9.
What is the output of this program?
    class isNaN_output 
    {
        public static void main(String args[]) 
        {
            Double d = new Double(1 / 0.);  
            boolean x = d.isNaN();
            System.out.print(x);
        }
    }
Discuss
Answer: (d).false
Q10.
What is the output of this program?
    class binary 
    {
         public static void main(String args[]) 
         {
             int num = 17;
             System.out.print(Integer.toBinaryString(num));
         }
    }
Discuss
Answer: (d).10001
Page 1 of 26

Suggested Topics

Are you eager to expand your knowledge beyond Java Programming? We've curated a selection of related categories that you might find intriguing.

Click on the categories below to discover a wealth of MCQs and enrich your understanding of Computer Science. Happy exploring!