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?
2450java Api provided try catch finally ,try catch(its ok) but why try finally and exception occured at try then how the flow is?
1 4935what is the difference between static class and singleton class? can we create static class?
L&T, Octazen, Vamsi Labs,
2 6088ublic 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 2642
Can a lock be acquired on a class in java programming?
Tell me about different OOPS concepts.
What is map and hashmap in java?
Explain the use of shift operator in java. Can you give some examples?
What is the difference between inner class and nested class?
Do we have pointers in java?
Is minecraft java edition free?
What is passing value java?
how to deploy tomcatserver to weblogic server? write d following steps?
What is parsing in java?
What are heap memory and stack memory and what are memory tables.
How to sort numbers in java without array?
What is abstraction in java?
Draw a UML class diagram for the code fragment given below: public class StringApplet extends Applet { private Label sampleString; private Button showTheString; private ButtonHandler bHandler; private FlowLayout layout; public StringApplet() { sampleString = new Label(" "); showTheString = new Button (" Show the String"); bHandler = new ButtonHandler(); layout = new FlowLayout(); showTheString.addActionListener(bHandler); setLayout(layout); add(sampleString); add(showTheString); } class ButtonHandler implements ActionListener { public void actionPerformed(ActionEvent e) { samplestring.setText("Good Morning"); } } } Note: The methods need not be indicated on the diagram.
What is finally block?