Database - JDBC, Java Server Pages, and MySQL - Discussion
Discussion Forum : JDBC, Java Server Pages, and MySQL - General Questions (Q.No. 9)
9.
What is not true of a Java bean?
Discussion:
9 comments Page 1 of 1.
Srikanth said:
9 years ago
It does not allow more constructors why because JavaBeans instances are created by reflective calls. So, we have to provide a constructor (non-paramerter) for initialization purpose. If you do not provide any constructor JVM provides automatically a default constructor to JavaBeans.
That's why no need to create more constructors.
That's why no need to create more constructors.
Vishva said:
9 years ago
Bean class can have one default constructor and getters & setters. But it can also allow for more constructors.
Anju said:
1 decade ago
Java bean is a simple kind of POJO class. The only difference is POJO class contains getter and setters, but Bean class can contain getter and setters plus business logic also.
(1)
Ammu said:
1 decade ago
There can be as many constructor along with setters method.
Prashant Kulkarni said:
1 decade ago
Yes. How is it possible bean has constructors ? because, everything's in bean classes has private and specially has there is no constructor, so how is it possible ? can anyone tell us?
MILIND KATE said:
1 decade ago
But how it happen?
Abhi said:
1 decade ago
We can make as many constructors(parameterised or not parameterised) as possible in bean.
Manche Shekhar said:
1 decade ago
Java bean doesn't have any consturctors.
Sonali jain said:
1 decade ago
What is java bean in detail?
Post your comments here:
Quick links
Quantitative Aptitude
Verbal (English)
Reasoning
Programming
Interview
Placement Papers