+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. Which of the following area in the memory stores object references, method parameters, and its local variables?
Register
stack
heap
Accumulator
View Answer
2. Which of the following statement is true regarding local inner class.
None of these
Cannot access private members of the enclosing class
Can implement anonymous interfaces
Associated with an instance of the enclosing class
View Answer
3. Which of the following are not Java keywords?
class
switch
then
double
View Answer
4. Identify the shortest manner in which you can decorate a Java annotation
prefix #
suffix #
prefix @
suflix @
View Answer
5. Which of the following methods cannot have a body in Java?
native
final
static
local
View Answer
6. 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
7. Which of the following informs the JavaDoc tool that custom annotations must be visible in the JavaDoc for classes that are using custom animations?
@Reference
@Target
@Documented
@inherited
View Answer
8. Who is known as father of Java Programming Language?
Charles Babbage
Rasmus Lerdof
James Gosling
Blaise Pascal
View Answer
9. Which of the following annotations is used as custom annotation at runtime?
reference
interface
@Documented
@Retention
View Answer
10. What are default methods also known as? a. Virtual extension methods b. Defender methods c. Extension methods
A and B
B and C
Only B
Only A
View Answer