State the difference between creating string as new () and literal.
No Answer is Posted For this Question
Be the First to Post Answer
class A { private int i; } class B extends A { private int i; } if I create an object of B class what will be the memory of that object.
What are some alternatives to inheritance?
What is size of int in java?
Can you declare the main method as final?
What is exception handling in java?
What class is used to implement a Throwable array?
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 string value?
What is a java predicate?
What’s the difference between unit, integration and functional testing?
How to make a read-only class in java?
Tell me how many ways are there to initialise an integer with a constant.