Answer Posted / renuka reddy.
JVM(Java Virtual Machine):-
JVM plays a central role in making java portable.
when we write a code in java program the java
compiler converts the source code into bytecode (.class
file),after that JVM reads the bytecode and converts into
the machine understandable language.
Its just like the interpreter but the normal
interpreter is a platform dependent but JVM is a platform
independent.
| Is This Answer Correct ? | 4 Yes | 8 No |
Post New Answer View All Answers
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.
Describe 2 different ways to concatenate two strings.
What will happen if a thrown exception is not handled?
What technique can be employed to compare two strings?
What is arguments in java?
Name few java 8 annotations ?
List out five keywords related to exception handling ?
What is meant by polymorphism?
How does thread synchronization occurs inside a monitor?
Can I override protected method in java?
How can an object be unreferenced?
What are the restrictions that are applied to the java static methods?
How many ways can you break a singleton class in java?
What is the difference between ArrayList and Vector? which one is better in Java
Mention some features of java?