Popular Courses
Sail E0 Package
Valid Till Next Exam
Fast Math Tricks
165 videos
Quantitative Aptitude
645 Videos
Reasoning Aptitude
161 Videos
CLASS 8 MATHS(CBSE)
417 Videos
CLASS 9 MATHS(CBSE)
40 hours, 647 questions
Check All Courses
Resources
Store
Blog
More
About Us
Contact Us
Register / Login
Menu
Home
Blog
Store
About Us
Contact Us
Profile Settings
Attempted Tests
My Purchases
Popular Courses
Sail E0 Package
Valid Till Next Exam
Fast Math Tricks
165 videos
Quantitative Aptitude
645 Videos
Reasoning Aptitude
161 Videos
CLASS 8 MATHS(CBSE)
417 Videos
CLASS 9 MATHS(CBSE)
40 hours, 647 questions
Check All Courses
Search
Search
Home
Topics
MCQs
Total Questions : 25 | Page
1
of 3 pages
Question 1.
Which of the following does not belong: If a class inherits from some other class, it should
Make use of the parent class's capabilities
Over-ride or add the minimum to accomplish the derived class' purpose
Over-ride all the methods of its parent class
Make sure the result IS-A-KIND-OF" its base class
See Solution
Discuss Question
Answer: Option C. ->
Over-ride all the methods of its parent class
Question 2.
How many methods are there in a functional interface in Java 8?
0
1
2
3
See Solution
Discuss Question
Answer: Option B. ->
1
Question 3.
PermGen space has been replaced with which of these in Java 8
PermSpace
PermSpaceGen
Metaspace
MetaGenSpace
See Solution
Discuss Question
Answer: Option C. ->
Metaspace
Question 4.
Example of functional interfaces
java.util.concurrent.Callable
java.lang.Runnable
All
None
See Solution
Discuss Question
Answer: Option C. ->
All
Question 5.
Using which keyword we can access a value of the instance variables and class variables of that class inside the method of that class itself.
Super
Final
This
Either super or this
See Solution
Discuss Question
Answer: Option C. ->
This
Question 6.
Which of these does Stream map() operates on
Class
Interface
Predicate
Function
See Solution
Discuss Question
Answer: Option D. ->
Function
Question 7.
Which is aggregate operation in Java 8
filter
map
forEach
All
See Solution
Discuss Question
Answer: Option C. ->
forEach
Question 8.
Which of the following are not valid lambda expressions?
() -> {}
() -> Raoul"
() -> {return Mario";}
(Integer i) -> return Alan" + i;
See Solution
Discuss Question
Answer: Option C. ->
() -> {return Mario";}
Question 9.
Functional interfaces can be annotated as
Function
FunctionalInterface
Functional
Interface
See Solution
Discuss Question
Answer: Option B. ->
FunctionalInterface
Question 10.
Given a class named student, which of the following is a valid constructor declaration for the class?
Student (student s) { }
Student student ( ) { }
Private final student ( ) { }
Void student ( ) { }
See Solution
Discuss Question
Answer: Option A. ->
Student (student s) { }
1
2
3
Next →
Share this page with your friends!
Share this page with your friends!
Latest Videos
Chapter 1 - GLOBAL STEEL SCENARIO & INDI
Part 1 : (13-04-2024)
INDUSTRY AND COMPANY AWARENESS (ICA)
Direction Sense Test
Part 1
Reasoning (Hindi)
Chapter 1 - RMHP / OHP / OB & BP
Part 1 : (14-02-2024)
GPOE 2024
Cube & Cuboid
Part 1
Reasoning (Hindi)
Data Interpretation (DI)
Basic Concept
Reasoning (Hindi)
Counting Figures Part 1
Counting Of Straight Lines
Reasoning (Hindi)
Sail E0 free webinar
Webinars
Real Numbers
Part 7
Class 10 Maths
Real Numbers
Part 1
Class 10 Maths
Polynomials
Part 1
Class 10 Maths
Latest Test Papers
Chapter 1.1 : INTRODUCTION
Chapter 1 : Raw Material Handling Plant
GPOE/GPA 2024
Chapter 1.1 : Personnel Functions- An ov
Chapter 1 : Personnel Management
GFM 2024
Chapter 3.1 : INTRODUCTION
Chapter 3 : Sinter Plant
GPOE/GPA 2024
Chapter 2.3 : COAL HANDLING PLANT - Set
Chapter 2 : Coke Ovens and Coal Chemicals
GPOE/GPA 2024
Chapter 2.1 : Overview
Chapter 2 : Materials Management
GFM 2024