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
App Development
Amazon Virtual Assistant
YouTube Earning
WordPress Development
Tutorials
Feedback
Programming Notes
Verification
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 statement is true regarding local inner class.
Cannot access private members of the enclosing class
Can implement anonymous interfaces
Associated with an instance of the enclosing class
None of these
View Answer
2. 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
@inherited
@Documented
@Target
View Answer
3. A lambda expression facilitates __________
Functional programming
Structured programming
Logical programming
Backward reasoning
View Answer
4. Which of the following keywords are used to explicitly raise an exception from a method?
try-catch
throw and throws
try and finally
none of these
View Answer
5. Which of the following are not Java keywords?
then
double
switch
class
View Answer
6. Which of the following methods cannot have a body in Java?
final
local
native
static
View Answer
7. What are default methods also known as? a. Virtual extension methods b. Defender methods c. Extension methods
B and C
Only A
Only B
A and B
View Answer
8. What is the full form of JVM ?
Java Virtual Machine
None of them
ava Very Large Machine
Java Verified Machine
View Answer
9. Which of the following functions on any Zoneld ensures that a fixed offset ID will be formed as a ZoneOffset?
now()
normalized()
getVal()
of()
View Answer
10. 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