Explain the difference between string, stringbuffer and stringbuilder in java?
What is the synchronized method modifier?
Can we inherit a class with private constructor?
What is diamond operator in java?
What is the synonym of string?
What are the main features of java?
List the three steps for creating an object for a class?
What is means by DLL file means ? What is the use of DLL file? What are the contents of DLL file?
What does the three dot emoji mean?
Can we synchronize static methods 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 the output??????? public class multireturn { public(int assign x ( int x) { if(4==x) { return 7; } else if (7=x+3) { return 6; } return 5; } }
How to sort a collection of custom Objects in Java?