Explain JPA in Java.
Answer / nashiinformaticssolutions
The Java Persistence API enables us to create the persistence layer for desktop and web applications. Java Persistence deals in the following:
1. Java Persistence API
2. Query Language
3. Java Persistence Criteria API
4. Object Mapping Metadata
| Is This Answer Correct ? | 0 Yes | 0 No |
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.
when a servlet sends request for first time it uses the follwing methods a)init b)doget() c)dopost() d)service
How do you avoid global variables?
What is stringwriter?
How HashMap implemented in java? how it internally works when values are added or searched from hashMap?What is the difference betweenthe implementation of hashmap and Linked Hashmap?
What are the data types supported by java?
What is the difference between preemptive scheduling and time slicing in java programming?
Are strings immutable in java?
Is java hashset ordered?
Diff between Comparator and Comparable?
What is the difference between variable & constant?
Why singleton class is used in java?