+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()
normalized()
getValue()
instant()
View Answer
2. Which of the following statement is true regarding local inner class.
None of these
Associated with an instance of the enclosing class
Cannot access private members of the enclosing class
Can implement anonymous interfaces
View Answer
3. 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
4. The _____ class is declared without a name within a code block such as the body of a method.
Local inner class
Final Class
Anonymous class
None of these
View Answer
5. Who is known as father of Java Programming Language?
Blaise Pascal
Rasmus Lerdof
James Gosling
Charles Babbage
View Answer
6. In Java 8, which of the following classes is used in place of TimeZone.getDefault() method?
Instant
Clock
System
Duration
View Answer
7. What is the full form of JVM ?
ava Very Large Machine
Java Virtual Machine
None of them
Java Verified Machine
View Answer
8. Which of the following area in the memory stores object references, method parameters, and its local variables?
stack
heap
Register
Accumulator
View Answer
9. 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
10. Which of the following keywords are used to explicitly raise an exception from a method?
throw and throws
none of these
try and finally
try-catch
View Answer