Monday, 22 August 2016

Coding standards for EJB

EJB:
It means 'Enterprise Java Bean'
Bean is a simple Java class contains private variables and setters,getters for all the private variables.

Example:
public class StudentBean {
private String name;
private boolean empty;

public void setName(String name) {

this.name=name;
}
public String getName() {
return name;
}

public boolean getEmpty()/isEmpty {
return empty;
}

No comments:

Post a Comment

If you Like my blog Spread it and help friends for whom this blog is useful for their career.