EXTENDED JAVA
In java platform,Standard Edition or Java SE is a widely used platform for development and deployment of portable code for desktop.
Java SE should be run each and every time we need to use it the code.Java SE uses the object-oriented java programming language. It is part of the java software platform family .Java SE should be run each and every time we need to use it the code. Enterprise Edition or Java EE is the standard in community driven enterprise software .It is a widely used computing platform for enterprise software.Java EE extends the Java platform, standard Edition providing an API for object-relational mapping,distributed and multi-tier architectures, and web services. In java EE we need to run the code only once and we can use the class file at anywhere in the container for our convenience. If we place the source code in container(server) based on many purpose , it can be for transaction, delivering appropriate details, and real world updates etc..., It will also be secure when a source code is in container . Main purpose of using container is for REUSABILITY.
In java SE,we can access program by running the class file in console screen, but in java EE the code in container will work when the different platform,which is mean by WEB SERVICES. Software package which is inside the class in the container must follow some standard for some reasons. Properties inside the class in the container and its type can be differ from one user to another , so it should follow some standard.
Initially java is developed for some specific features such as reusability,polymorphism,encapsulation, message passing, dynamic binding etc.., which are can be comes under object oriented programming concepts,but part of java which is called APPLET reached the world than these intellectual concept.Applet is mainly to design wise graphical user interface.To establish these concepts which are focused in java, there comes JAVA EE, which are having some software packages and they are following some standard called JAVABEAN.
JavaBean are the mainstream Java component model, introduced in 1996 by SUN MICROSYSTEMS. "A JavaBean is a reusable software components that can be manipulated visually in builder tool." Software components are self-contained, reusable,software units which are present inside a container.Software components can be categorised into two, visual and non-visual components.Visual components are really available to UI builder tools such as Button,TextView etc.., They can be drag and drop to build UI of an application.We can immediately see the results of our work. Non-visual components capture business logic or state. JavaBean is a portable, platform- independent component model written in Java Programming language.With the JavaBean API, you can create reusable, platform-independent components. It can be either visual or non visual.
NULL-ARRAY CONSTRUCTOR
It should contain Null array constructor which means default constructor. Java code,that have been placed inside the server are java beans. It should be called for its usage. It will be called when the request is arrived. Container only going to create the objects for the class, but it does not going to pass any parameter or else it won't be sure about its parameters going to pass requested data. So, no argument constructor or null array constructor are mandatory. Java Bean is also a class which should contains no argument constructor with "public" access specifier. This is required so that java frame work can faciliated automated instantiated. Actually it is easy to instanciate a class by introspection if it get a default constructor. If we don't provide an explicit construtor, then the default constructor created by the complier is fine. If we do provide constructor in our class , we should provide a public no argument constructor. An empty constructor is needed to create a new instance via reflection by your persistence framework. It you dont't provide any additional constructors with arguments for the class, you don't need to provide an empty constructor because you get one per default. Sometimes, when you use "GSON" plugin to convert string Json data to object, it demands to write default constructor, otherwise it doesn't work. JSON(JavaScript Object Notation) is a lightweight data-interchange format. It is easy for humans to read and write. It is easy for machines to parse and generate.
PROPERTIES AND METHODS
JavaBean, since it is a class it should be declared public. Properties inside the class should be private properties. Every properties should have getter and setter method for its own . Those properties should be comes under public access specifier, so only we can access those properties using those methods. A getter method which is used to obtain the value of the property
from a bean. The name is usually of the form " getPropertyName" . For example, the getter method for the string property "coffee" is "public" string "getCoffee()".A setter method which is used to assign a value to a bean's property. A setter method is a method of the form " public void setPropertyName()". For the previous example, the setter could be invoked as setCoffee("oak");. Setter method can not be no argument method, so should have some parameters.Getter method's return types should not be void , since its going to return something, so it must have the return type with any one of the datatypes its going to return. And for boolean property instead of getter method we can use "isPropertyName()",because boolean value going to have only two results which must be true or false, but both getter method and isProperty method are valid.
SERIALIZABLE INTERFACE
In networks,data can be transferred in the form of bits and bytes alone. Serialization is the process of converting an object into a stream of bytes in order to store the object or transmit it to memory,a database, or a file. Its main purpose is to save the state of an object in order to be able to recreate it when needed. A java object is serializable if its class or any of its superclass implements either the" java.io.serializable" interface or its sub interface , "java.io.Externalizable". If we wants to store the data and to keep the data secure. Serializable is a marker Interface. Each object you mark with the serializable interface can be sent throw the wire or can be safed in a file.
Simply,
JavaBean are reusable software components for java. practically, they are classes written in the Java Programming language conforming to a particular convention . They are used to encapsulate many objects into a single object(the bean), so that they can be passed around as a single bean object instead of as multiple individual objects. A javaBean is a java object that is serializable , has a o-argument construcctor, and allows access to properties using getter and setter methods.
In java platform,Standard Edition or Java SE is a widely used platform for development and deployment of portable code for desktop.
Java SE should be run each and every time we need to use it the code.Java SE uses the object-oriented java programming language. It is part of the java software platform family .Java SE should be run each and every time we need to use it the code. Enterprise Edition or Java EE is the standard in community driven enterprise software .It is a widely used computing platform for enterprise software.Java EE extends the Java platform, standard Edition providing an API for object-relational mapping,distributed and multi-tier architectures, and web services. In java EE we need to run the code only once and we can use the class file at anywhere in the container for our convenience. If we place the source code in container(server) based on many purpose , it can be for transaction, delivering appropriate details, and real world updates etc..., It will also be secure when a source code is in container . Main purpose of using container is for REUSABILITY.
In java SE,we can access program by running the class file in console screen, but in java EE the code in container will work when the different platform,which is mean by WEB SERVICES. Software package which is inside the class in the container must follow some standard for some reasons. Properties inside the class in the container and its type can be differ from one user to another , so it should follow some standard.
Initially java is developed for some specific features such as reusability,polymorphism,encapsulation, message passing, dynamic binding etc.., which are can be comes under object oriented programming concepts,but part of java which is called APPLET reached the world than these intellectual concept.Applet is mainly to design wise graphical user interface.To establish these concepts which are focused in java, there comes JAVA EE, which are having some software packages and they are following some standard called JAVABEAN.
JavaBean are the mainstream Java component model, introduced in 1996 by SUN MICROSYSTEMS. "A JavaBean is a reusable software components that can be manipulated visually in builder tool." Software components are self-contained, reusable,software units which are present inside a container.Software components can be categorised into two, visual and non-visual components.Visual components are really available to UI builder tools such as Button,TextView etc.., They can be drag and drop to build UI of an application.We can immediately see the results of our work. Non-visual components capture business logic or state. JavaBean is a portable, platform- independent component model written in Java Programming language.With the JavaBean API, you can create reusable, platform-independent components. It can be either visual or non visual.
NULL-ARRAY CONSTRUCTOR
It should contain Null array constructor which means default constructor. Java code,that have been placed inside the server are java beans. It should be called for its usage. It will be called when the request is arrived. Container only going to create the objects for the class, but it does not going to pass any parameter or else it won't be sure about its parameters going to pass requested data. So, no argument constructor or null array constructor are mandatory. Java Bean is also a class which should contains no argument constructor with "public" access specifier. This is required so that java frame work can faciliated automated instantiated. Actually it is easy to instanciate a class by introspection if it get a default constructor. If we don't provide an explicit construtor, then the default constructor created by the complier is fine. If we do provide constructor in our class , we should provide a public no argument constructor. An empty constructor is needed to create a new instance via reflection by your persistence framework. It you dont't provide any additional constructors with arguments for the class, you don't need to provide an empty constructor because you get one per default. Sometimes, when you use "GSON" plugin to convert string Json data to object, it demands to write default constructor, otherwise it doesn't work. JSON(JavaScript Object Notation) is a lightweight data-interchange format. It is easy for humans to read and write. It is easy for machines to parse and generate.
PROPERTIES AND METHODS
JavaBean, since it is a class it should be declared public. Properties inside the class should be private properties. Every properties should have getter and setter method for its own . Those properties should be comes under public access specifier, so only we can access those properties using those methods. A getter method which is used to obtain the value of the property
from a bean. The name is usually of the form " getPropertyName" . For example, the getter method for the string property "coffee" is "public" string "getCoffee()".A setter method which is used to assign a value to a bean's property. A setter method is a method of the form " public void setPropertyName()". For the previous example, the setter could be invoked as setCoffee("oak");. Setter method can not be no argument method, so should have some parameters.Getter method's return types should not be void , since its going to return something, so it must have the return type with any one of the datatypes its going to return. And for boolean property instead of getter method we can use "isPropertyName()",because boolean value going to have only two results which must be true or false, but both getter method and isProperty method are valid.
SERIALIZABLE INTERFACE
In networks,data can be transferred in the form of bits and bytes alone. Serialization is the process of converting an object into a stream of bytes in order to store the object or transmit it to memory,a database, or a file. Its main purpose is to save the state of an object in order to be able to recreate it when needed. A java object is serializable if its class or any of its superclass implements either the" java.io.serializable" interface or its sub interface , "java.io.Externalizable". If we wants to store the data and to keep the data secure. Serializable is a marker Interface. Each object you mark with the serializable interface can be sent throw the wire or can be safed in a file.
Simply,
JavaBean are reusable software components for java. practically, they are classes written in the Java Programming language conforming to a particular convention . They are used to encapsulate many objects into a single object(the bean), so that they can be passed around as a single bean object instead of as multiple individual objects. A javaBean is a java object that is serializable , has a o-argument construcctor, and allows access to properties using getter and setter methods.
Comments
Post a Comment