Can a vector contain heterogenous objects?


No Answer is Posted For this Question
Be the First to Post Answer

Post New Answer

More Core Java Interview Questions

This abstract class is correct ? abstract class A { public abstract void Disp(); public abstract void B() { } public absract virtual C() { } }

0 Answers   HCL,


Explain thread in java?

0 Answers  


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.

0 Answers  


Why Over riding is Run Time Polymorphism?

3 Answers   Genpact,


What is difference between local variable and global variable?

0 Answers  






Can we assign null to double in java?

0 Answers  


What is a Presistent Object?

0 Answers   InfoAxon Technologies,


What is substring of a string?

1 Answers  


What is OOP?

2 Answers   BMC, Microsoft,


Under what conditions is an object’s finalize() method invoked by the garbage collector?

0 Answers  


Is java same as core java?

0 Answers  


How do you define a set in java?

0 Answers  


Categories