Answer Posted / harish
To compile a Java file, it should have a tools.jar and
dt.jar in the classpath. It should have a javac
executable. It compiles the class file. If you want to
execute the class file, you should have a Java Run-time
Environment. (JRE)
| Is This Answer Correct ? | 8 Yes | 3 No |
Post New Answer View All Answers
What is multi-catch block in java?
Can a list be null in java?
How can we avoid including a header more than once?
What is the purpose of javac exe?
What are different types of inner classes ?
What is boolean used for?
What are passing parameters?
What is the difference between error and an exception?
What is java in detail?
What are the library functions in java?
How do you write a conditional statement?
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 is indexof in java?
Can we create an object of static class in java?
What is a stringbuffer?