What is the difference between C++ & Java?
Answer Posted / komal
c++ uses destructor to deallocate memory.
java uses garbage collector for this purpose
| Is This Answer Correct ? | 6 Yes | 0 No |
Post New Answer View All Answers
Are functions objects in java?
What does it mean that a class or member is final?
explain what is transient variable in java?
What is the main advantage of passing argument by reference?
What is the difference between applet and application?
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 are the different types of garbage collectors in java?
Can a constructor be made final?
Difference between serialization and deserialization in java?
Where is jre installed?
Why are pointers not secure?
What is outofmemoryerror in java?
What is the dot operator?
What is string immutability?
Is null keyword in java?