Safcode Institute by Sir Safder
+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 Development
Amazon Virtual Assistant
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. Who is known as father of Java Programming Language?
Charles Babbage
Rasmus Lerdof
Blaise Pascal
James Gosling
View Answer
2. Which of the following methods cannot have a body in Java?
local
static
native
final
View Answer
3. In Java code, the line that begins with /* and ends with */ is known as?
Single line comment
Multiline comment
Both A & B
None of the above
View Answer
4. 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
5. Which of the following informs the JavaDoc tool that custom annotations must be visible in the JavaDoc for classes that are using custom animations?
@inherited
@Target
@Reference
@Documented
View Answer
6. What is the full form of JVM ?
Java Virtual Machine
None of them
ava Very Large Machine
Java Verified Machine
View Answer
7. 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
8. Which of the following annotations is used as custom annotation at runtime?
interface
@Retention
reference
@Documented
View Answer
9. Which one is true about a constructor ?
All of the above
A constructor may be declared private
A constructor is used to create objects.
A constructor must have the same name as the class it is declared within.
View Answer
10. Which of the following statement is true regarding a constructor in a class.
All of them
A constructor returns void
A constructer can be overloaded
A constructor has an associated destructor
View Answer