ANSWERS: 1
  • A JavaBean is a class that defines pairs of get and set methods (known as getters and setters). Each pair "works" on attribute. Suppose you have a Customer class. It has SSN (Social security number) of type long, FirstName of type String and NumberOfChildren of type int. Then you define long getSSN(); void setSSN(String SSN); String getFirstName(); void setFirstName(String firstName); int getNumberOfChildren(); void setNumberOfChildren(int numberOfChildren); Using reflection this class can be inspected at runtime by IDE/server/bean host to derive the attributes. EJB is an extension of JavaBeans and is a part of J2EE standards. It allows nice integration between Web server and Application server: in the Web server you call get() and set() and they delegate to the Application server, which works with DB/external system/XML source/...

Copyright 2023, Wired Ivy, LLC

Answerbag | Terms of Service | Privacy Policy