Posts

What Is Basic Concepts Of Object-Oriented Programming?

1.Object and Class:- Objects are the basic runtime entities in an object-oriented system. They may represent a person,a place,a bank account , a table of data or any item that the program may handle. They may also represent user-defined data such  as vectors and lists. Any programming is analyzed in terms of objects and the nature of communication between them. Program objects should be chosen such that they match closely with the real world objects. As pointed out earlier , an object takes up space in the memory and has an associated address like a record in Pascal, or a structure in C. When a program is executed the objects interact by sending message to one another. 2.Data Abstraction and Encapsulation:- The wrapping up of data and methods into a single unit(called class) is known as encapsulation. Data encapsulation is the most striking feature of a class. The data is not accessible to the outside world and only those methods,which are wrapped in the class, can access it. These...

How to create JSP(Java Server Pages) with Username validation in javascript ?

Insert title here Fname Lname Email Contact Gender Male Female

How To Fix Server Error In Java Servlet?

Image
Right Click on project Properties-->Project Facets-->Runtimes-->Apache Tomcate-->Apply and Close

How to Create a Java Servlet Using Eclipse?

Image
1.Create a  New Dynamic Web Project in Eclipse 2.Create Servlet  in Eclipse Project- ->  Java Resources --> Src --> New --> Servlet   3.Give Java Package and Class Name then Click Finish.

How To Set Getters And Setters Method In java Using Eclipse?

Image
1.First create a new class in your project. 2.Then set variables. package com.Bean; public class Services { private int id; private String services; } 3.Right click inside the curly braces.                                           select source and go to getters and setters method. 5.select all terms then click on generate. 6.Generate successfully.

How To Database Connectivity In Java With MySQL?

Image
import java.sql.Connection; import java.sql.DriverManager; public class UTIL { public static Connection createConnection() { Connection con = null; try { Class.forName("com.mysql.jdbc.Driver"); con = DriverManager.getConnection("jdbc:mysql://localhost:3306/mysql", "root",""); } catch (Exception e) { // TODO: handle exception e.printStackTrace(); } return con;    } }