+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. Identify the shortest manner in which you can decorate a Java annotation
suflix @
suffix #
prefix @
prefix #
View Answer
2. Which of the following statement is true regarding local inner class.
Can implement anonymous interfaces
Cannot access private members of the enclosing class
Associated with an instance of the enclosing class
None of these
View Answer
3. A lambda expression facilitates __________
Functional programming
Backward reasoning
Structured programming
Logical programming
View Answer
4. Which of the following are not Java keywords?
class
double
then
switch
View Answer
5. What is the full form of JVM ?
ava Very Large Machine
Java Virtual Machine
Java Verified Machine
None of them
View Answer
6. Which of the following keywords are used to explicitly raise an exception from a method?
try-catch
none of these
try and finally
throw and throws
View Answer
7. Which of the following functions on any Zoneld ensures that a fixed offset ID will be formed as a ZoneOffset?
normalized()
getVal()
of()
now()
View Answer
8. Which one is true about a constructor ?
A constructor is used to create objects.
All of the above
A constructor may be declared private
A constructor must have the same name as the class it is declared within.
View Answer
9. 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
10. In Java code, the line that begins with /* and ends with */ is known as?
None of the above
Multiline comment
Both A & B
Single line comment
View Answer