+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. Which of the following statement is true regarding a constructor in a class.
A constructor returns void
A constructer can be overloaded
All of them
A constructor has an associated destructor
View Answer
2. What is the full form of JVM ?
ava Very Large Machine
None of them
Java Virtual Machine
Java Verified Machine
View Answer
3. Which one is true about a constructor ?
A constructor is used to create objects.
A constructor may be declared private
A constructor must have the same name as the class it is declared within.
All of the above
View Answer
4. Which of the following are not Java keywords?
double
then
switch
class
View Answer
5. Identify the shortest manner in which you can decorate a Java annotation
prefix @
prefix #
suflix @
suffix #
View Answer
6. A lambda expression facilitates __________
Backward reasoning
Logical programming
Structured programming
Functional programming
View Answer
7. Which of the following informs the JavaDoc tool that custom annotations must be visible in the JavaDoc for classes that are using custom animations?
@Reference
@inherited
@Documented
@Target
View Answer
8. Which of the following annotations is used as custom annotation at runtime?
interface
reference
@Documented
@Retention
View Answer
9. What are default methods also known as? a. Virtual extension methods b. Defender methods c. Extension methods
A and B
Only A
B and C
Only B
View Answer
10. Which of the following functions on any Zoneld ensures that a fixed offset ID will be formed as a ZoneOffset?
normalized()
of()
getVal()
now()
View Answer