Menu mobile
Home
PYTHON
Python Tutorial
Program Example
Interview Questions
JAVA
Java Tutorial
Program Example
Interview Questions
C Language
C Tutorial
Program Example
Interview Questions
Web Design
HTML
CSS
Java Script
PHP
Assignment
MS Office
HTML
CSS
Java Script
JQuery
AngularJs
QUIZ ON : JAVA - USING LIBRARY CLASSES
USING LIBRARY CLASSES
00:00:00
English
Hindi
Question No# :
01
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
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
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
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
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
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
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
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
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
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
Previous
1
Next
CCC Online Test 2021
CCC Practice Test Hindi
Python Programming Tutorials
Best Computer Training Institute in Prayagraj (Allahabad)
Best Java Training Institute in Prayagraj (Allahabad)
Best Python Training Institute in Prayagraj (Allahabad)
O Level Online Test in Hindi
Bank SSC Railway TET UPTET Question Bank
career counselling in allahabad
Sarkari Naukari Notification
Best Website and Software Company in Allahabad
Sarkari Exam Quiz