Java
AWT
JDBC
Servlets
JAVA
JSP
JavaBean
Java
class Student
Property
{
int rno;
}
Student o1=new Student();
[Link]=1000;
Java
class Student
{
int rno;
}
Student o1=new Student();
[Link]=1000;
Java
class Student
{
private int rno;
}
Student o1=new Student();
[Link]=1000;
Java Bean
package test; Student o1=new Student();
public class Student
{
[Link](1000);
private int rno;
public void setRno(int rno) int r=[Link]();
{
[Link]=rno;
}
public int getRno()
{
return [Link];
}
}
Java Bean
JavaBeans are Java classes which adhere to
an extremely simple coding convention. All
you have to do is to
It provides a default, no-argument constructor.
It should be serializable and implement
the Serializable interface.
It may have a number of properties which can be read
or written.
It may have a number of "getter" and "setter"
methods for the properties.