Blog Archives

7 Java Modifiers every interviewer likes to quiz you on

Java modifiers like final, finally, const, volatile, and transient are very popular with the job interviewers. You will see why because of the possible drill down questions.

Q1. What is the difference between ‘final‘ and ‘const‘ modifiers on a variable?
A1. This is a bit of a tricky question because the ‘const‘ is a reserved keyword in Java, but not used.… Read more ...

Tags:

Java identifiers

Q1. Which of these are legal Identifiers in Java? a) $Ident1 b) _Ident1 c) -Ident1 d) 2Ident1 e) private f) private1 g) null h) Ident-1 i) Ident$1 j) \u00A3Ident1 k) \u00A5Ident1 A1. The legal identifiers in Java are are a,b, f, i, j, and k. Identifiers are names you give…

Read more ...


500+ Java Interview FAQs

Java & Big Data Tutorials

Top