+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. Time-zone based date and time information of a ZonedDateTime object can be accessed using _______ method.
of()
getValue()
instant()
normalized()
View Answer
2. The _____ class is declared without a name within a code block such as the body of a method.
None of these
Local inner class
Final Class
Anonymous class
View Answer
3. Who is known as father of Java Programming Language?
James Gosling
Charles Babbage
Blaise Pascal
Rasmus Lerdof
View Answer
4. A lambda expression facilitates __________
Backward reasoning
Structured programming
Functional programming
Logical programming
View Answer
5. What is the full form of JVM ?
Java Verified Machine
ava Very Large Machine
Java Virtual Machine
None of them
View Answer
6. Which one is true about a constructor ?
A constructor may be declared private
A constructor is used to create objects.
All of the above
A constructor must have the same name as the class it is declared within.
View Answer
7. In Java code, the line that begins with /* and ends with */ is known as?
Both A & B
Single line comment
Multiline comment
None of the above
View Answer
8. Which of the following area in the memory stores object references, method parameters, and its local variables?
heap
stack
Accumulator
Register
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. 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
@Target
@inherited
@Documented
View Answer