Java Interview Questions
Hello friends once again we discuss some memory based Java Interview Questions, These questions are submitted by one of my friend. I hope these are helpful for you.
- Why use AWT in Java ?
- What is event Handling in Java ?
- Explain button event handling in AWT ?
- What is the difference between Swing and AWT components?
- What's the difference between constructors and other methods?
- Is there any limitation of using Inheritance?
- When is the ArrayStoreException thrown?
- Can you call one constructor from another if a class has multiple constructors?
- What's the difference between the methods sleep() and wait()?
- When ArithmeticException is thrown?
- What is a transient variable?
- What is synchronization?
- What is the Collections API?
- What is Collection framework ?
- Does garbage collection guarantee that a program will not run out of memory?
- The immediate superclass of the Applet class?
- Which Java operator is right associative?
- What is the difference between a break statement and a continue statement?
- If a variable is declared as private, where may the variable be accessed?
- What is the purpose of the System class?
- List primitive Java types ?
- Explain data type in java ?
- What is the relationship between clipping and repainting under AWT?
- Which class is the immediate superclass of the Container class?
- What class of exceptions are generated by the Java run-time system?
- Under what conditions is an object's finalize() method invoked by the garbage collector?
- How can a dead thread be restarted?
- Which arithmetic operations can result in the throwing of an ArithmeticException?
- Variable of the boolean type is automatically initialized as?
- Can try statements be nested?
- What are ClassLoaders?
- Purpose of ClassLoader ?
- What is the difference between an Interface and an Abstract class?
- What will happen if static modifier is removed from the signature of the main method?
- What is the default value of an object reference declared as an instance variable?
- Can a top level class be private or protected?
- Why do we need wrapper classes?
- What is the difference between error and an exception?
- Is it necessary that each try block must be followed by a catch block?
- When a thread is created and started, what is its initial state?
- What is the Locale class?
- What are synchronized methods and synchronized statements?
- What is runtime polymorphism or dynamic method dispatch?
- What is Dynamic Binding(late binding)?
- Can constructor be inherited?
- Can we make constructor final ?
- What are the advantages of ArrayList over arrays?
- Difference between Array and Collections ?
- Difference between Stack and Queue ?
- Difference between Queue and LinkedList ?
Hey
ReplyDeleteThere,
Thank you! Thank you! Thank you! Your blog was a total game changer!
I am going to
implement the blackbox class ""messagePool"". Details are as below. I
just want to implement it so that the whole application can run.
// Call messagePool
Java Code:
Dac dac =
GenericDac.getInstance();
String result =
dac.getMessagePool().getMessage(languageCode, key);
public abstract interface Dac extends java.io.Serializable{
public abstract void init(javax.servlet.ServletContext
arg0, java.lang.String arg1, java.lang.String arg2, java.lang.String arg3,
java.lang.String arg4) throws com.jos.adf3.core.exception.DacInitException;
public abstract com.pool.MessagePool getMessagePool();
}
public class GenericDac implements Dac{
private com.pool.MessagePool messagePool;
}
Super likes !!! for this
amazing post. I thinks
everyone should bookmark this.
Regards,
Morgan