What design pattern you have used in your project? I answered Factory pattern, how it is implemented? What are its advantage? Do know about Abstract Factory?
2507java Api provided try catch finally ,try catch(its ok) but why try finally and exception occured at try then how the flow is?
1 5056what is the difference between static class and singleton class? can we create static class?
L&T, Octazen, Vamsi Labs,
2 6236ublic class Java_Coding_Samples { public static void JavaHungr(NumberFormatException ae){ System.out.println("integer"); } public static void JavaHungry(Exception e){ System.out.println("string"); } public static void JavaHungry(ArithmeticException ae){ System.out.println("object"); } public static void main(String[] args) { JavaHungry(null); }
1 2750
What is Enum in Java?
Can a method inside a interface be declared as final?
How does thread synchronization occurs inside a monitor? What levels of synchronization can you apply?
how to create multithreaded program? Explain different ways of using thread? When a thread is created and started, what is its initial state? : Java thread
What is the do while loop syntax?
what is nested class in java?
Differentiate between stringbuffer and string?
what is the major difference between linkedlist and arraylist in java?
How to avoid memory leak in java?
Explain about join() method?
What is the differences between heap and stack memory in java? Explain
What is predicate in java?
Explain reverse a linked list iterative solution in java?
What's the base class in java from which all classes are derived?
Why java is used everywhere?