Answer Posted / pankaj
A Java Applet is made up of at least one public class that has to be subclasses from java.awt.Applet. Whereas, A Java application is made up of a main() method declared as public static void that accepts a string array argument,along with any other classes that main() calls.
| Is This Answer Correct ? | 67 Yes | 13 No |
Post New Answer View All Answers
What is classpath?
explain multi-threading in java?
How do you get the length of a string in java?
What is abstract class constructor called?
What is the symbol for line break?
What is the use of hashmap in java?
In java, how many ways you can take input from the console?
Explain differences between collection api and stream api?
Describe 2 different ways to concatenate two strings.
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 data type is true or false?
What is the purpose of the file class in java programming?
What is the type of lambda expression?
What is java developer skills?
What is the common usage of serialization?