ExamLookup
Menu mobile
Home
Current Affairs
General Knowledge
Computer
Python
HTML
MCQ CORE JAVA QUIZ CORE JAVA MCQ Questions CORE JAVA Questions Answer for Interview
English
Hindi
Question No. -
101
Report Bug
Methods are contained in
Methods are contained in
A.
Class
Class
B.
Object
Object
C.
Body of loop
Body of loop
D.
None of these
None of these
Question No. -
102
Report Bug
The function name and the parameter list together is known as
The function name and the parameter list together is known as
A.
function signature
function signature
B.
function Autograph
function Autograph
C.
function nick name
function nick name
D.
function attribute
function attribute
Question No. -
103
Report Bug
The access specifier, return type and the function signature together is known as
The access specifier, return type and the function signature together is known as
A.
Prototype
Prototype
B.
method body
method body
C.
calling of method
calling of method
D.
None of these
None of these
Question No. -
104
Report Bug
Impure functions uses call by
Impure functions uses call by
A.
Value
Value
B.
Reference
Reference
C.
Self
Self
D.
Other package
Other package
Question No. -
105
Report Bug
One of the practical implementation of polymorphism is
One of the practical implementation of polymorphism is
A.
Overloading
Overloading
B.
Overlapping
Overlapping
C.
Abstraction
Abstraction
D.
Encapsulation
Encapsulation
Question No. -
106
Report Bug
Which of the following is not applicable for a constructor function?
Which of the following is not applicable for a constructor function?
A.
It has the same name as the class.
It has the same name as the class.
B.
It has no return-type
It has no return-type
C.
It is usually used for initialisation
It is usually used for initialisation
D.
It can be invoked using an object like any other member function
It can be invoked using an object like any other member function
Question No. -
107
Report Bug
If the name of a class is ‘Number’, what can be the possible name for its constructor?
If the name of a class is ‘Number’, what can be the possible name for its constructor?
A.
Number
Number
B.
number
number
C.
construct
construct
D.
Number_contruct
Number_contruct
Question No. -
108
Report Bug
Which among the following is a type of constructor?
Which among the following is a type of constructor?
A.
Parameterised constructor
Parameterised constructor
B.
Non-parameterised constructor
Non-parameterised constructor
C.
Both a and b
Both a and b
D.
None of these
None of these
Question No. -
109
Report Bug
If constructors are overloaded, what differentiates it?
If constructors are overloaded, what differentiates it?
A.
Parameter list
Parameter list
B.
Return type
Return type
C.
Both a and b
Both a and b
D.
None of these
None of these
Question No. -
110
Report Bug
What access specifier for a constructor allows you to create an object only within the class?
What access specifier for a constructor allows you to create an object only within the class?
A.
public
public
B.
private
private
C.
protected
protected
D.
default
default
Question No. -
111
Report Bug
Name the type of constructor that gets invoked when an object is created, which is initialised with the content of another object.
Name the type of constructor that gets invoked when an object is created, which is initialised with the content of another object.
A.
Copy constructor
Copy constructor
B.
Default constructor
Default constructor
C.
Overloaded constructor
Overloaded constructor
D.
None of these
None of these
Question No. -
112
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. -
113
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. -
114
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. -
115
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. -
116
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. -
117
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. -
118
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. -
119
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. -
120
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()
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
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