+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. Identify the shortest manner in which you can decorate a Java annotation
prefix @
suflix @
prefix #
suffix #
View Answer
2. Identify the number of times the @Repeatable annotation type can be executed on the same source code element by default.
Multiple
Twice
One
Zero
View Answer
3. Which of the following statement is true regarding local inner class.
Cannot access private members of the enclosing class
Associated with an instance of the enclosing class
None of these
Can implement anonymous interfaces
View Answer
4. Which of the following functions on any Zoneld ensures that a fixed offset ID will be formed as a ZoneOffset?
getVal()
normalized()
of()
now()
View Answer
5. Which of the following are not Java keywords?
double
then
switch
class
View Answer
6. Which of the following methods cannot have a body in Java?
final
static
local
native
View Answer
7. The _____ class is declared without a name within a code block such as the body of a method.
Local inner class
None of these
Anonymous class
Final Class
View Answer
8. Which of the following area in the memory stores object references, method parameters, and its local variables?
Register
stack
heap
Accumulator
View Answer
9. What are default methods also known as? a. Virtual extension methods b. Defender methods c. Extension methods
A and B
Only B
Only A
B and C
View Answer
10. Time-zone based date and time information of a ZonedDateTime object can be accessed using _______ method.
normalized()
instant()
getValue()
of()
View Answer