
I need to know about java beans(what are java beans,why we use java beans, etc...).I want an example program and it's output also.please teach me...

Java Beans are reusable components. They are used to separate Business logic from the Presentation logic. Internally, a bean is just an instance of a class.
For more information, go through the following links:
http://www.roseindia.net/jsp/using-bean-counter.shtml
If you are facing any programming issue, such as compilation errors or not able to find the code you are looking for.
Ask your questions, our development team will try to give answers to your questions.