+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
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. Identify the number of times the @Repeatable annotation type can be executed on the same source code element by default.
One
Zero
Multiple
Twice
View Answer
2. Which of the following statement is true regarding a constructor in a class.
All of them
A constructer can be overloaded
A constructor returns void
A constructor has an associated destructor
View Answer
3. Which of the following are not Java keywords?
then
double
class
switch
View Answer
4. Time-zone based date and time information of a ZonedDateTime object can be accessed using _______ method.
instant()
getValue()
of()
normalized()
View Answer
5. Which of the following statement is true regarding local inner class.
Cannot access private members of the enclosing class
None of these
Can implement anonymous interfaces
Associated with an instance of the enclosing class
View Answer
6. Who is known as father of Java Programming Language?
Charles Babbage
James Gosling
Rasmus Lerdof
Blaise Pascal
View Answer
7. A lambda expression facilitates __________
Functional programming
Logical programming
Structured programming
Backward reasoning
View Answer
8. Identify the shortest manner in which you can decorate a Java annotation
prefix #
suffix #
suflix @
prefix @
View Answer
9. Which of the following keywords are used to explicitly raise an exception from a method?
try-catch
throw and throws
none of these
try and finally
View Answer
10. Which of the following functions on any Zoneld ensures that a fixed offset ID will be formed as a ZoneOffset?
getVal()
normalized()
now()
of()
View Answer