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?
2505java Api provided try catch finally ,try catch(its ok) but why try finally and exception occured at try then how the flow is?
1 5049what is the difference between static class and singleton class? can we create static class?
L&T, Octazen, Vamsi Labs,
2 6229ublic 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 2747
How are variables stored?
Whats the difference between notify() and notifyall()?
How would you dynamically allocate memory to an array?
How hashmap increases its size in java?
Are there structures in java?
What does function identity () do?
what do you mean by java annotations?
What are anonymous inner classes?
How do you read a char in java?
Where are local variables stored?
What is javac used for?
What is the base class for error and exception?
What access modifiers can be used for class ?
Is it possible to cast an int value into a byte variable? What would happen if the value of int is larger than byte?
What is finalize()? Is finalize() similar to a destructor?