+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. Who is known as father of Java Programming Language?
Rasmus Lerdof
Blaise Pascal
James Gosling
Charles Babbage
View Answer
2. Which one is true about a constructor ?
A constructor is used to create objects.
A constructor must have the same name as the class it is declared within.
A constructor may be declared private
All of the above
View Answer
3. Identify the number of times the @Repeatable annotation type can be executed on the same source code element by default.
Zero
Twice
One
Multiple
View Answer
4. A lambda expression facilitates __________
Logical programming
Functional programming
Structured programming
Backward reasoning
View Answer
5. Which of the following keywords are used to explicitly raise an exception from a method?
none of these
try and finally
try-catch
throw and throws
View Answer
6. Time-zone based date and time information of a ZonedDateTime object can be accessed using _______ method.
of()
normalized()
instant()
getValue()
View Answer
7. Which of the following annotations is used as custom annotation at runtime?
reference
@Retention
interface
@Documented
View Answer
8. In Java 8, which of the following classes is used in place of TimeZone.getDefault() method?
Instant
Duration
System
Clock
View Answer
9. Which of the following methods cannot have a body in Java?
native
local
static
final
View Answer
10. In Java code, the line that begins with /* and ends with */ is known as?
Multiline comment
None of the above
Single line comment
Both A & B
View Answer