React Interview Question
1. How React Works ?
2. React Virtual Dom ?
3. What is the concept of "Single page application" in react js ?
4. How to achive lificycle in functional component ?
Statement st;
ResultSet rs;
Class.forName("com.mysql.jdbc.Driver");
Connection con = DriverManager.getConnection("jdbc:mysql://localhost:4306/mydata", "root", "sandip@123");
st = con.createStatement();
String query = "select * from student";
rs = st.executeQuery(query);
out.println("<!DOCTYPE html>");
out.println("<html>");
out.println("<head>");
out.println("<title>Servlet ViewRecord</title>");
out.println("</head>");
out.println("<body>");
out.println("<center>");
out.println("<table cellspacing='0' width ='500px' border='1'>"); out.println("<tr>");
out.println("<td> Name :</td>");
out.println("<td> Address :</td>");
out.println("<td> Update:</td>");
out.println("<td> Delete:</td>");
out.println("</tr>");
while (rs.next()) {
String name = rs.getString("name");
String address = rs.getString("address");
out.println("<tr>");
out.println("<td> " + name + " :</td>");
out.println("<td> " + address + " :</td>");
out.println("<td> <a href='Edit2?name=" + rs.getString("name") + "'>Edit</a> </td>");
out.println("<td> <a href='Delete?name=" + rs.getString("name") + "'>Delete</a> </td>");
out.println("</tr>");
}
out.println("</center>");
out.println("</body>");
out.println("</html>");
Last Updated on : 30th Oct 2024 20:52:11 PM
Latest Update
- JavaScript Interview Question MongoDb Command Curd Operation Node MonogoDb Express EJSC Practice Question Example Data Structure with CPPjava practice questionCurd operation with localstorage in javascriptComplete curd operation in react with json server and axios and router-domCPP Practice Question React Interview Question Java Pattern Program