What is the difference between Object and Instance?
Answer Posted / titupathirao
For example, if I declare a class like
Animal a=new Animal();
Is variable 'a' in above is an instance which has an object of Animal type?
| Is This Answer Correct ? | 1 Yes | 0 No |
Post New Answer View All Answers
What 5 doubled?
What is the base class of all classes?
What is the meaning of flag day?
What is difference between length and length() method in java ?
What is the list interface?
What do you mean by inner class in java? Explain
What is parameter example?
How to compare two strings in java program?
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.
Why do we use bufferedreader?
What is variable argument in java?
What is a 16 bit word?
what are Hostile Applets?
whar are the draw backs of programming lang step by step in Clang and next in C++ and next and in Java nad in .Net
How many bits are used to represent unicode, ascii, utf-16, and utf-8 characters?