++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. What are default methods also known as? a. Virtual extension methods b. Defender methods c. Extension methods
Only A
B and C
Only B
A and B
View Answer
2. Which of the following statement is true regarding a constructor in a class.
A constructor has an associated destructor
A constructor returns void
All of them
A constructer can be overloaded
View Answer
3. What is the full form of JVM ?
None of them
Java Verified Machine
ava Very Large Machine
Java Virtual Machine
View Answer
4. Which of the following area in the memory stores object references, method parameters, and its local variables?
stack
Accumulator
heap
Register
View Answer
5. Which one is true about a constructor ?
A constructor is used to create objects.
A constructor may be declared private
A constructor must have the same name as the class it is declared within.
All of the above
View Answer
6. In Java code, the line that begins with /* and ends with */ is known as?
Multiline comment
None of the above
Both A & B
Single line comment
View Answer
7. Which of the following statement is true regarding local inner class.
Cannot access private members of the enclosing class
Associated with an instance of the enclosing class
None of these
Can implement anonymous interfaces
View Answer
8. Identify the shortest manner in which you can decorate a Java annotation
suflix @
prefix #
suffix #
prefix @
View Answer
9. Which of the following are not Java keywords?
switch
class
double
then
View Answer
10. A lambda expression facilitates __________
Functional programming
Backward reasoning
Logical programming
Structured programming
View Answer