Blog Archives

6 Java Modifiers every interviewer likes to quiz you on

Java modifiers like final, finally, const, volatile, transient and finalize 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.…



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)…



800+ Java & Big Data Interview Q&As

200+ Java & Big Data Tutorials

Top