Results 1 to 6 of 6

Thread: Difference between Java Class and Bean

  1. #1
    Join Date
    Dec 2009
    Posts
    67

    Difference between Java Class and Bean

    Hi All,

    I need your help to solve my confusion. As per my knowledge java is fully object oriented programming language. In which "class" is the main part of the program. But I am confused between the Java Class and Bean. I don't have any idea about their differentiation. It will be great if you able to provide some differences between the Java Class and Bean. Your any help would greatly appreciated.

  2. #2
    Join Date
    Jan 2008
    Posts
    1,521

    Re: Difference between Java Class and Bean

    The java class and beans are completely different. The java beans are serializable while class not. This can be achieved through the addition of the setters and getters. But this can not be achieved in the class. The bean need to follow certain conventions while class doesn't need any convention. In other word the beans are nothing but the the subset of java classes. It used to implements interface of type "serializable".

  3. #3
    Join Date
    Apr 2008
    Posts
    1,948

    Re: Difference between Java Class and Bean

    The JavaBeans specification defines the type JavaBeans components as "reusable software components". A component is a simple Java Bean Class Java respects certain conventions about method naming, construction and behavior. Adherence to these conventions makes it possible to use, reuse, replace and connect Java Beans for development tools. The beans must be "Serializable"In order to save and restore instances of this class.

  4. #4
    Join Date
    May 2008
    Posts
    2,012

    Re: Difference between Java Class and Bean

    The definition of a class includes a number of elements called Member Class. The definition of a class specify certain characteristics of objects instantiating. The concept extends the class type. A class is a template or pattern which will manufactured objects. Members of a class, in addition to being filled or not static may have other attributes. Java programmer often see Java Beans as Java Objects and which follows certain naming conventions.

  5. #5
    Join Date
    Apr 2008
    Posts
    2,005

    Re: Difference between Java Class and Bean

    The class is related to any object, it doesn't depend on any subject, the more often it will not be changed during program execution.The instance variables used to represent computational objects. Class methods and instance differ in exactly the same way as class variables or instance. All instances of class share a variable. Viewed as a class, a pattern which is used by a dressmaker has variables such as class designer of the master, the date of conception or the journal in which it was issued.

  6. #6
    Join Date
    May 2008
    Posts
    2,297

    Re: Difference between Java Class and Bean

    • The class must have a constructor argument.
    • The class must contain methods of interception of events necessary.
    • The private properties of the java class should be publicly accessible via accessor methods constructed get or set followed by the name of the property with the first letter converted to uppercase.
    • The class must be "Serializable"In order to save and restore instances of this class.

Similar Threads

  1. What is the difference between Local class and global class in C++?
    By Dëfrim in forum Software Development
    Replies: 4
    Last Post: 03-01-2011, 10:44 PM
  2. Converting java class to java bean class
    By Ucchal in forum Software Development
    Replies: 6
    Last Post: 09-08-2010, 10:24 AM
  3. Debug class and Trace class Difference
    By Amaresh in forum Software Development
    Replies: 5
    Last Post: 22-01-2010, 10:00 AM
  4. Difference among concrete class and abstract class
    By Roxy_jacob in forum Software Development
    Replies: 4
    Last Post: 07-12-2009, 01:22 PM
  5. Replies: 4
    Last Post: 02-03-2009, 08:46 PM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Page generated in 1,713,986,101.40596 seconds with 17 queries