import java.awt.*;
import java.awt.event.*;
public class ChoiceOptionExample{
public static void main(String[] args) {
Frame frame=new Frame("Choice");
Label label=new Label("What is your Choice:");
Choice choice=new Choice();
frame.add(label);
frame.add(choice);
choice.add("ROSE");
choice.add("India");
choice.add("WELCOME");
frame.setLayout(new FlowLayout());
frame.setSize(250,150);
frame.setVisible(true);
frame.addWindowListener(new WindowAdapter(){
public void windowClosing(WindowEvent e){
System.exit(0);
}
});
}
}
Who create Java & when? Why he create java ? What are mane functions of it?
NO, we cannot create a contructor for an interface in java.
Java's List interface defines the size() method, which can be used to retrieve the length of a list.
how to create setup file in core java
Running "java -version" will display the current version of Java.
A Java compiler.
To aid in making choices. For example, if you have 100 applicants for a job, the best way to narrow your choice of candidate is to create a short list of people who have the best qualities.
You can find a list of Java keywords in the Wikipedia article "List of Java keywords". These keywords may not be used for variables or other user-defined names.
write a java program to display "Welcome Java" and list its execution steps.
"verify" is not a Java keyword. I believe the link, in related links, has the complete list of Java keywords.
A computer, keyboard and Java compiler.
how to create a master page in java