+923132835245
safcodeinstitute@gmail.com
Online Quiz
10000+ Questions!
Students Works
Ideas & Topics!
Live Coding
HTML & CSS
Home
(current)
About
Courses
CIT
Web Designing
Graphic Designing
Web Development
Digital Marketing
WordPress + SEO
Artificial Intelligence (AI)
Shopify + WordPress Development
Tutorials
Feedback
Programming Notes
Softwares
Contact
Test Your Programming Skills with Safcode!
Here is all important interview / exams questions.
Student doing practice apptitude test on safcode platform.
Instruction: "Total Number of Questions: 20
Each question carry 10 mark , no negative marking"
Quiz Start
1. In Java 8, which of the following classes is used in place of TimeZone.getDefault() method?
Instant
Clock
Duration
System
View Answer
2. Who is known as father of Java Programming Language?
Blaise Pascal
James Gosling
Rasmus Lerdof
Charles Babbage
View Answer
3. Which of the following keywords are used to explicitly raise an exception from a method?
throw and throws
try and finally
try-catch
none of these
View Answer
4. Time-zone based date and time information of a ZonedDateTime object can be accessed using _______ method.
getValue()
instant()
of()
normalized()
View Answer
5. A lambda expression facilitates __________
Backward reasoning
Logical programming
Functional programming
Structured programming
View Answer
6. What are default methods also known as? a. Virtual extension methods b. Defender methods c. Extension methods
Only B
Only A
B and C
A and B
View Answer
7. Which of the following are not Java keywords?
double
then
class
switch
View Answer
8. Which of the following statement is true regarding a constructor in a class.
A constructor returns void
A constructor has an associated destructor
All of them
A constructer can be overloaded
View Answer
9. Which of the following functions on any Zoneld ensures that a fixed offset ID will be formed as a ZoneOffset?
normalized()
of()
now()
getVal()
View Answer
10. Which of the following statement is true regarding local inner class.
Can implement anonymous interfaces
Cannot access private members of the enclosing class
None of these
Associated with an instance of the enclosing class
View Answer