Safcode Institute by Sir Safder
+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 Development
Amazon Virtual Assistant
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. In Java code, the line that begins with /* and ends with */ is known as?
Single line comment
Multiline comment
None of the above
Both A & B
View Answer
2. Which of the following annotations is used as custom annotation at runtime?
@Retention
@Documented
interface
reference
View Answer
3. Which of the following methods cannot have a body in Java?
final
native
local
static
View Answer
4. Who is known as father of Java Programming Language?
Charles Babbage
Blaise Pascal
Rasmus Lerdof
James Gosling
View Answer
5. Which of the following area in the memory stores object references, method parameters, and its local variables?
stack
Accumulator
Register
heap
View Answer
6. A lambda expression facilitates __________
Backward reasoning
Structured programming
Logical programming
Functional programming
View Answer
7. Which of the following statement is true regarding a constructor in a class.
All of them
A constructor has an associated destructor
A constructer can be overloaded
A constructor returns void
View Answer
8. In Java 8, which of the following classes is used in place of TimeZone.getDefault() method?
Instant
Clock
System
Duration
View Answer
9. Time-zone based date and time information of a ZonedDateTime object can be accessed using _______ method.
normalized()
of()
getValue()
instant()
View Answer
10. What are default methods also known as? a. Virtual extension methods b. Defender methods c. Extension methods
Only A
Only B
A and B
B and C
View Answer