What are different access specifiers in java? Explain
No Answer is Posted For this Question
Be the First to Post Answer
what is marker interface ? what is the necessity of it?
Is Java is 100% pure OOPS? Explain?
Is singleton a bad practice?
what do you understand by synchronization? Or what is synchronization and why is it important? Or describe synchronization in respect to multithreading? Or what is synchronization? : Java thread
Can we override final method?
What is the difference between preemptive scheduling and time slicing?
Can a class be private in java?
How to decrease number of hashings in has
What is a protected method?
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 do you mean by a JVM?
explain what is transient variable in java?