+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
Softwares
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 one is true about a constructor ?
A constructor must have the same name as the class it is declared within.
A constructor may be declared private
A constructor is used to create objects.
All of the above
View Answer
2. Identify the number of times the @Repeatable annotation type can be executed on the same source code element by default.
Zero
One
Multiple
Twice
View Answer
3. Which of the following annotations is used as custom annotation at runtime?
@Documented
interface
reference
@Retention
View Answer
4. In Java code, the line that begins with /* and ends with */ is known as?
Multiline comment
Both A & B
Single line comment
None of the above
View Answer
5. Which of the following methods cannot have a body in Java?
local
static
native
final
View Answer
6. What is the full form of JVM ?
None of them
ava Very Large Machine
Java Verified Machine
Java Virtual Machine
View Answer
7. Which of the following statement is true regarding local inner class.
Cannot access private members of the enclosing class
None of these
Can implement anonymous interfaces
Associated with an instance of the enclosing class
View Answer
8. Who is known as father of Java Programming Language?
James Gosling
Blaise Pascal
Rasmus Lerdof
Charles Babbage
View Answer
9. Which of the following functions on any Zoneld ensures that a fixed offset ID will be formed as a ZoneOffset?
of()
now()
normalized()
getVal()
View Answer
10. Which of the following keywords are used to explicitly raise an exception from a method?
try-catch
try and finally
none of these
throw and throws
View Answer