+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. What is the full form of JVM ?
Java Verified Machine
ava Very Large Machine
None of them
Java Virtual Machine
View Answer
2. Which of the following keywords are used to explicitly raise an exception from a method?
try and finally
none of these
try-catch
throw and throws
View Answer
3. Which of the following are not Java keywords?
class
then
double
switch
View Answer
4. What are default methods also known as? a. Virtual extension methods b. Defender methods c. Extension methods
Only B
B and C
A and B
Only A
View Answer
5. 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
6. Which of the following annotations is used as custom annotation at runtime?
reference
interface
@Documented
@Retention
View Answer
7. Which of the following functions on any Zoneld ensures that a fixed offset ID will be formed as a ZoneOffset?
now()
getVal()
normalized()
of()
View Answer
8. Which of the following statement is true regarding local inner class.
Can implement anonymous interfaces
None of these
Cannot access private members of the enclosing class
Associated with an instance of the enclosing class
View Answer
9. In Java 8, which of the following classes is used in place of TimeZone.getDefault() method?
System
Clock
Instant
Duration
View Answer
10. A lambda expression facilitates __________
Structured programming
Backward reasoning
Logical programming
Functional programming
View Answer