++92 313 8389893
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. Which of the following functions on any Zoneld ensures that a fixed offset ID will be formed as a ZoneOffset?
getVal()
normalized()
now()
of()
View Answer
2. Which of the following are not Java keywords?
then
switch
double
class
View Answer
3. Who is known as father of Java Programming Language?
Blaise Pascal
Charles Babbage
James Gosling
Rasmus Lerdof
View Answer
4. Time-zone based date and time information of a ZonedDateTime object can be accessed using _______ method.
normalized()
getValue()
instant()
of()
View Answer
5. Which of the following keywords are used to explicitly raise an exception from a method?
try and finally
none of these
throw and throws
try-catch
View Answer
6. The _____ class is declared without a name within a code block such as the body of a method.
None of these
Anonymous class
Local inner class
Final Class
View Answer
7. What is the full form of JVM ?
ava Very Large Machine
None of them
Java Verified Machine
Java Virtual Machine
View Answer
8. 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
9. Which of the following annotations is used as custom annotation at runtime?
@Documented
@Retention
interface
reference
View Answer
10. What are default methods also known as? a. Virtual extension methods b. Defender methods c. Extension methods
Only B
A and B
B and C
Only A
View Answer