Top Question asked by interviewers for Junior Java Developer Role.


  • What is the purpose of finalization?
  • How many times may an object’s finalize() method be invoked by the garbage collector?
  • What is the argument type of a program’s main() method?
  • Can a double value be cast to a byte?
  • What must a class do to implement an interface?
  • What is the advantage of the event-delegation model over the earlier event-inheritance model?
  • What is the difference between a static and a non-static inner class?
  • What is an object’s lock and which object’s have locks?
  • How is rounding performed under integer division?
  • What classes of exceptions may be caught by a catch clause?
  • Is the ternary operator written x : y ? z or x ? y : z ? - It is written x ? y : z.
  • If a class is declared without any access modifiers, where may the class be accessed?
  • Can there be an abstract class with no abstract methods in it?
  • Difference between JRE/JVM/JDK?
  • What are wrapped classes?
  • What is a daemon thread?
  • What is the byte range?
  • What is aggregation?
  • What is composition?
  • What is an Iterator and how do you use it?
  • Explain what it means to write "state-less" code? How does this relate to a multi-threaded application?
  • Explain when you would use each of the following: final, finally and finalize.
If you know more please contribute through comments Thanks


Hardik said...

How can you say java platform independent while you are using different format of installer for different platform?

Brambo said...

Most (not all) of these questions are rather low level technical & detail questions which can't really prove that you have a good developer.

I've met people who can answer these questions with ease but when they start programming they don't seem to understand the basics of object orientation, abstraction, dependency management, separation of concerns, ...

I rather ask them what they are interested in, which projects they know. Do they know spring, jsf, etc? Let hem explain why it's good. Explain dependency injection if they don't know it and check if they understand it.

:)) ;)) ;;) :D ;) :p :(( :) :( :X =(( :-o :-/ :-* :| 8-} :)] ~x( :-t b-( :-L x( =))

Post a Comment