++92 313 8389893
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
Enroll Now
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. Time-zone based date and time information of a ZonedDateTime object can be accessed using _______ method.
getValue()
instant()
of()
normalized()
View Answer
2. The _____ class is declared without a name within a code block such as the body of a method.
Local inner class
Anonymous class
None of these
Final Class
View Answer
3. Identify the shortest manner in which you can decorate a Java annotation
prefix #
suflix @
suffix #
prefix @
View Answer
4. Which of the following methods cannot have a body in Java?
final
local
static
native
View Answer
5. Which of the following statement is true regarding local inner class.
Can implement anonymous interfaces
Associated with an instance of the enclosing class
None of these
Cannot access private members of the enclosing class
View Answer
6. Which of the following functions on any Zoneld ensures that a fixed offset ID will be formed as a ZoneOffset?
of()
getVal()
normalized()
now()
View Answer
7. What are default methods also known as? a. Virtual extension methods b. Defender methods c. Extension methods
B and C
Only B
Only A
A and B
View Answer
8. Who is known as father of Java Programming Language?
Blaise Pascal
Charles Babbage
James Gosling
Rasmus Lerdof
View Answer
9. Which of the following area in the memory stores object references, method parameters, and its local variables?
stack
Register
heap
Accumulator
View Answer
10. In Java 8, which of the following classes is used in place of TimeZone.getDefault() method?
Duration
Instant
Clock
System
View Answer