Distinguishes JavaBeans from Java Classes

Distinguishes JavaBeans from Java Classes

What is the difference between a Java Bean and an instance of a normal Java class?Explain with an example, pls?

View Answers

January 24, 2011 at 1:01 PM

Hi Friend,

Differences:

1)The java beans are serializable while class is not.

2)The bean need to follow certain conventions while class doesn't need any convention.

3)Java bean contains only setters and getters while in class, you can define constructor with arguments, methods etc.

4)A class contains a main method while a bean does not.

Thanks









Related Tutorials/Questions & Answers:
Distinguishes JavaBeans from Java Classes
Distinguishes JavaBeans from Java Classes  What is the difference between a Java Bean and an instance of a normal Java class?Explain with an example, pls?   Hi Friend, Differences: 1)The java beans are serializable
JavaBeans - Java Beginners
JavaBeans  List out the differences between SampleBeans and UserDefined JavaBeans with examples
Advertisements
JavaBeans
;   JavaBeans are reusable software components designed for the Java... technology. The advantages of java beans are that JavaBeans has more than a good... imposed from a prior technology, except maybe from Java. We can also say
javabeans
javabeans  how to run java bean program
javabeans
javabeans  write a java bean to count the number of threads with the exception generated at action listener class where action are send and receive
Java classes
Java classes  Which class is extended by all other classes
java classes
java classes  Which class is the super class for all classes in java.lang package
how to retrieve data from multiple tables in jsp using javabeans
how to retrieve data from multiple tables in jsp using javabeans   ...).second .java file for getting data from second table- package pack; public...??? 1)first -.java file package pack; public class admin { private int Book_id
how to retrieve data from multiple tables in jsp using javabeans
how to retrieve data from multiple tables in jsp using javabeans   ...).second .java file for getting data from second table- package pack; public...??? 1)first -.java file package pack; public class admin { private int Book_id
how to retrieve data from multiple tables in jsp using javabeans
how to retrieve data from multiple tables in jsp using javabeans   ...).second .java file for getting data from second table- package pack; public...??? 1)first -.java file package pack; public class admin { private int Book_id
how to run java program that has several classes under package from usb drive?
how to run java program that has several classes under package from usb drive... command line and it works. I copied all java files and class files to flash drive... a1.cis568 under this package I have several classes. main class is A1.java and other
Java classes
Java classes  What is the Properties class
java classes
java classes  What is the ResourceBundle class
Java classes
Java classes  What is singleton pattern
Java classes
Java classes  Why default constructor of base class will be called first in java
java classes
java classes  What is the difference between a static and a non-static inner class
Classes in Java
Classes in Java      ... java have mechanisms for handling exceptions. This is known as catching exception in Java. The exceptions that occur in the program can be caught using try
Java list of uninstantiated classes
Java list of uninstantiated classes  Java list of uninstantiated classes
GWT supported java classes
GWT supported java classes  What are the methods and classes in Java which are supported and unsupported by GWT
Helper classes in java
Helper classes in java  helper classes
Java application that uses the classes and
Java application that uses the classes and   i have this class diagram with three classes: Curriculum, Course, and Lecture. Your class diagram...) I wish Write a Java application that uses the classes and methods above
Collection classes in java
is the reason using java collection classes saved/stored the data/content.I don't understand, what is the idea using java collection classes in project. Or the data is stored in both database and java collection classes
Collection classes in java
is the reason using java collection classes saved/stored the data/content.I don't understand, what is the idea using java collection classes in project. Or the data is stored in both database and java collection classes
java classes. - Java Beginners
java classes.  I con not understand the behavior of anonymous inner classes?   Hi friend, I am sending you a link. This link will help you. Please for more information. http://www.roseindia.net
What is Abstract classes in Java?
What is Abstract classes in Java?  What is Abstrack class in Java...,   Hi, In Java programming language we are used the Java Abstract.... That's why the Abstract class in Java programming language is used to provide
Member Classes, Inner Nested Classes in java
Member Classes        Member classes are defined within the body of a class. We can use member classes anywhere within the body of the containing class. We declare member classes
JAVA CLASSES/ SUPERCLASS
JAVA CLASSES/ SUPERCLASS  i. Define a class called Student and its two subclasses named underGraduateStudent and postGraduateStudent. Make a subclass of Employee. A person has a name, address, phone number, and email address
Java FontMetrics classes
Java FontMetrics classes  What is the difference between the Font and FontMetrics classes?  The Font class provides mappings to fonts that are used to render text data onto the screen. The Font class maps
javabeans - Java Beginners
Disassembling Java Classes - Java Tutorials
Disassembling Java Classes To Disassemble a class file in Java there is a tool... as C:\Java Test>javap DisassesmleExample Compiled from "... class of java. first compile them using javac then call the javap Class
Inner Classes In Java
Inner Classes In Java       There are 4 kind of classes that can be defined in a Java program, roughly can be termed as the inner classes. --  Inner classes provides an elegant
creating java classes
creating java classes  Create a Java class that can be used to store inventory information about a book. Your class should store the book title, the author?s name, the price, and the number of books in stock. The class you
classes - Java Beginners
method, the head, arms and legs can only be constructed from with the same package
creating java classes
creating java classes  This program uses a class named DrivingLicense to keep track of two driving licenses, including the driver?s name, and the number of speeding tickets they have received. You may not modify the DLTest code
Enterprise JavaBeans (EJB) Basics
JavaBeans is quite different from JavaBeans and you should not confuse between the two... who want to development software on Java platform, as without the proper... on Java platform. In EJB Basics, you need to learn all the basic components
Java Classes
Java Classes conducted online by Roseindia include an elite panel of some... that people of all segments from a rookie in the Java technology to a professional... sure that if a beginner starts taking a Java classes online here, than he/she
Abstract Classes - Java Interview Questions
Abstract Classes  Why we cann't instantiate a Abstract Classes? Even... as abstract prevents it from creating an instance. Why? Thanks in Advance...://www.roseindia.net/java/master-java/abstract-class.shtml Thanks (Roseindia Team
Java Get classes In Package
Java Get classes In Package   ... the classes from the package by providing the path of the jar file and the package... the name of Jar.  ADS_TO_REPLACE_2 Following code adds all the classes
What are Classes and Interfaces in Java?
In this tutorial we are going to discuss about classes and interfaces in Java... language. Anyone learning Java programming language should learn classes and interfaces concepts in detail. What are classes? Java is Object oriented
Java classes
Java classes are like a group under which all objects and methods... an example to further clarify the use of Java classes, object and its methods. Here... examples that will help beginners in Java understand the definition of Java
How are Anonymous (inner) classes used in Java?
How are Anonymous (inner) classes used in Java?  How are Anonymous (inner) classes used in Java
Video Tutorial - Classes and Objects in Java
Video Tutorial on Classes and Objects in Java teaches you with example code In this video tutorial you will learn about Classes and Objects in Java... will learn what are Classes and Objects in Java program. You will also learn how
what is difreence between javabeans and enterprise beans - EJB
)JavaBeans may have BeanInfo classes,property editors or customizers while...what is difreence between javabeans and enterprise beans  what is difreence between javabeans and enterprise beans  Hi Friend
executing java program with 2 classes
); } }   Executing java program with 2 classes save the file with D.java...executing java program with 2 classes  how to run a program of java containing more than one class....ex of program is given below.... class C
classes and data abstraction - Java Beginners
classes and data abstraction  Create a java program for a class named... for Mexican pesos, f for Swiss francs, e for Euro dollars or q to quit...() is called. If the user enters 'q', the data member more is set to false to allow
File Handling Classes in Java
In this section, you will get to know about file handling classes in java to handle the file input output operations
Classes in java
etc. For more details click on the following link Classes in Java
write a java program that implements the following classes:
write a java program that implements the following classes:  write a java program that implements the following classes: A) a) Point in the Cartesian... and cylinder and spere are subclasses of the circle class. All these classes should
Enterprise JavaBeans (EJB): An Overview
Enterprise JavaBeans (EJB): An Overview Enterprise JavaBeans (EJB) is a Java... for the modular construction of enterprise applications based on Java. Initially, EJB.... Later Java Community released the advance versions of EJB namely EJB 2.0
Java Spring Desktop application with multiple classes and jframe
Java Spring Desktop application with multiple classes and jframe  Hi i am developing a desktop java spring application..It has many Jframes forms and classes...How to close one Jframe from another..Please tell... First jframe

Ads