The list of Potential Questions that may be asked during the interview for Java Developer Position.
- Please give different possible implementations of the interface
- Is it possible to declare method in Java interface as:
- abstract
- final
- static
- public
- protected
- If you don’t want your class to be sub-classed, what should you do?
- How will you define a constant in Java? Is it possible? How?
- Can you please give examples of design patterns implemented in a standard Java API?
- Let’s assume you have two classes representing some services: Service1Impl and Service2Impl. Client (represented as Client1Impl class) expects to access functionality of these two services through one class: Client1Service.
- How will you reuse functionality of Service1Impl and Service1Imp2 in Client1Service?
- Does Java support multiple inheritance?
- What are possible combinations of try, catch, finally blocks?
- Is it possible for Java class to be declared as static? If yes, please give example.
- What can be final in Java? Please give example.
- What is the correct way of comparing two String object to be equal?
public interface ISampleInterface {
void doWork(MyParam myParam) throws MyException;
}
Please explain your answer.
Should you need to add something to this scheme, please don’t hesitate.
Please support your answer with a UML diagram (or using other notation).
Please support your answer with a UML diagram (or using other notation).
