ExamLookup
Menu mobile
Home
Current Affairs
General Knowledge
Computer
Python
HTML
MCQ JAVA - JAVA LIBRARY CLASSES MCQ Questions
English
Hindi
Question No. -
01
Report Bug
Which of the following is not a wrapper class?
Which of the following is not a wrapper class?
A.
Byte
Byte
B.
Int
Int
C.
Long
Long
D.
Float
Float
Question No. -
02
Report Bug
Which of the following is valid method of initialising?
Which of the following is valid method of initialising?
A.
Integer a=new (5);
Integer a=new (5);
B.
Integer a=Integer(5);
Integer a=Integer(5);
C.
Integer a=new Integer(5);
Integer a=new Integer(5);
D.
Integer a=new (“5”);
Integer a=new (“5”);
Question No. -
03
Report Bug
If s=“123”, which among the following will convert it to an integer?
If s=“123”, which among the following will convert it to an integer?
A.
int a=Integer(s);
int a=Integer(s);
B.
int a=(int)s;
int a=(int)s;
C.
int a=parseInt(s);
int a=parseInt(s);
D.
int a=Integer.parseInt(a);
int a=Integer.parseInt(a);
Question No. -
04
Report Bug
Which among the following is valid character initialisation?
Which among the following is valid character initialisation?
A.
Character c=new Character(‘c’);
Character c=new Character(‘c’);
B.
Character c=new Character(“c”);
Character c=new Character(“c”);
C.
Both a and b
Both a and b
D.
None of these
None of these
Question No. -
05
Report Bug
Which among the following methods return a true or a false?
Which among the following methods return a true or a false?
A.
toLowerCase()
toLowerCase()
B.
toUpperCase()
toUpperCase()
C.
parseInt()
parseInt()
D.
isUpperCase()
isUpperCase()
Question No. -
06
Report Bug
What package is a part of the wrapper class which is imported by default into all Java programs?
What package is a part of the wrapper class which is imported by default into all Java programs?
A.
java.util
java.util
B.
java.lang
java.lang
C.
java.awt
java.awt
D.
None of these
None of these
Question No. -
07
Report Bug
Which class is inherited by the Character and Boolean wrapper classes?
Which class is inherited by the Character and Boolean wrapper classes?
A.
Object
Object
B.
Number
Number
C.
Both a and b
Both a and b
D.
None of these
None of these
Question No. -
08
Report Bug
What is, converting a primitive value into an object of the corresponding wrapper class called?
What is, converting a primitive value into an object of the corresponding wrapper class called?
A.
Autoboxing
Autoboxing
B.
Unboxing
Unboxing
C.
Type Casting
Type Casting
D.
All of these
All of these
Question No. -
09
Report Bug
Which among the following function is used to check whether a given character is a tab space or not?
Which among the following function is used to check whether a given character is a tab space or not?
A.
isTab()
isTab()
B.
isTabSpace()
isTabSpace()
C.
isSpace()
isSpace()
D.
isWhitespace()
isWhitespace()
Question No. -
10
Report Bug
The member ‘out’ object of the ‘System’ class belongs to which class?
The member ‘out’ object of the ‘System’ class belongs to which class?
A.
System
System
B.
Print
Print
C.
PrintStream
PrintStream
D.
Println
Println
Explanation
The member 'out' belongs to System class which present 'java.lang' package, which imported by default.
1
2
3
4
CCC Online Test 2021
CCC Practice Test Hindi
Python Programming Tutorials
Best Computer Training Institute in Prayagraj (Allahabad)
O Level NIELIT Study material and Quiz
Bank SSC Railway TET UPTET Question Bank
career counselling in allahabad
Sarkari Exam Quiz
Website development Company in Allahabad