++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. Which of the following functions on any Zoneld ensures that a fixed offset ID will be formed as a ZoneOffset?
getVal()
normalized()
of()
now()
View Answer
2. 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
3. Which of the following annotations is used as custom annotation at runtime?
@Documented
@Retention
interface
reference
View Answer
4. Which one is true about a constructor ?
A constructor may be declared private
A constructor must have the same name as the class it is declared within.
All of the above
A constructor is used to create objects.
View Answer
5. Which of the following are not Java keywords?
switch
then
class
double
View Answer
6. Which of the following area in the memory stores object references, method parameters, and its local variables?
Accumulator
stack
heap
Register
View Answer
7. Identify the number of times the @Repeatable annotation type can be executed on the same source code element by default.
Zero
Multiple
One
Twice
View Answer
8. In Java code, the line that begins with /* and ends with */ is known as?
None of the above
Multiline comment
Single line comment
Both A & B
View Answer
9. Which of the following methods cannot have a body in Java?
static
final
local
native
View Answer
10. What is the full form of JVM ?
Java Verified Machine
Java Virtual Machine
ava Very Large Machine
None of them
View Answer