What is a locale?
Give any two differences between C++ and java.
What is Co-Variant return type in method overriding?
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.
INTERVIEW QUESTION FOR ANDROID
Is cout buffered?
Can we use catch statement for checked exceptions?
Can we override final method?
class A { class B { psvm(String args[]) { } } } if the prg saved in A.java whats the o/p?
What are the new features in java 8? Explain
Are true and false keywords?
What are the rules for naming an array?
When arithmeticexception is thrown?