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?
2550java Api provided try catch finally ,try catch(its ok) but why try finally and exception occured at try then how the flow is?
1 5148what is the difference between static class and singleton class? can we create static class?
L&T, Octazen, Vamsi Labs,
2 6366ublic 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 2820
How will you add panel to a frame?
What methodology can be utilized to link to a database?
What does indexof mean?
What is a nested structure?
What is use of set in java?
What does %4d mean in java?
What is the benefit of inner / nested classes ?
What is the difference between class & structure?
Can we sort arraylist in java?
Is null keyword in java?
Is a char always 1 byte?
Are true and false keywords?
What is a dot notation?
Is there any limitation of using inheritance?
Can an interface extend another interface?