+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 @
suffix #
prefix #
suflix @
View Answer
2. Who is known as father of Java Programming Language?
Blaise Pascal
Charles Babbage
Rasmus Lerdof
James Gosling
View Answer
3. Which of the following area in the memory stores object references, method parameters, and its local variables?
Accumulator
heap
stack
Register
View Answer
4. Which of the following annotations is used as custom annotation at runtime?
@Retention
interface
reference
@Documented
View Answer
5. 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
6. What is the full form of JVM ?
ava Very Large Machine
Java Virtual Machine
None of them
Java Verified Machine
View Answer
7. Which of the following methods cannot have a body in Java?
final
native
static
local
View Answer
8. Which one is true about a constructor ?
A constructor may be declared private
A constructor is used to create objects.
A constructor must have the same name as the class it is declared within.
All of the above
View Answer
9. Time-zone based date and time information of a ZonedDateTime object can be accessed using _______ method.
instant()
normalized()
getValue()
of()
View Answer
10. In Java code, the line that begins with /* and ends with */ is known as?
Multiline comment
Both A & B
Single line comment
None of the above
View Answer