| Forum Home | ||||
| PC World Chat | ||||
| Thread ID: 80223 | 2007-06-15 08:24:00 | Anyone know what Javabeans are? | Ninjabear (2948) | PC World Chat |
| Post ID | Timestamp | Content | User | ||
| 559544 | 2007-06-15 08:24:00 | Hi Can anyone explain in simple terms what JavaBeans are? It says in my book Java bean is a sort of a data cooking pot.One can pour data into an instance of a javabean by setting the javabean orioertues and then get cooked data out by getting javabean properties.Functionality is implemented by performing data processing when properties assigned values and when values of properties are read Then Wikipedia says JavaBeans are classes written in the Java programming language. They are used to encapsulate many objects into a single object (the bean), so that the bean can be passed around rather than the individual objects. I don't really understand the definition?Can anyone please help me out? |
Ninjabear (2948) | ||
| 559545 | 2007-06-15 08:54:00 | I am guessing based on Wikipedia's definition: JavaBean is to simply encode multiple objects into a single one so that it can be shared around as "a thing" rather than having multiple files strewn across. Cheers :) |
Renmoo (66) | ||
| 559546 | 2007-06-15 08:58:00 | Is it like a microwave oven, or is it like a crock pot? I don't think your book is very helpful (or very well written, if that's a fair example :( ) . Bad analogy, then an attempt at precision . The Wikipedia definition does look to be clear enough to me . I suppose you could say it's a bit like a Linux library, or a Windows DLL: a single identifiable "thing" which contains a number of distinct "units" which can perform "operations" on "data" . (I'm trying to avoid properly defined names for things) . Perhaps the thing is badly named, and it should be called a "JavaPod" . Perhaps not . ;) Aren't coffee beans actually the kernel of fruits, and occur singly, not in pods? What about "JavaJar" : a glass container which holds a lot of beans . You can pass the jar to someone, and it contains several thingies which do things . I'd hate to be a textbook writer . |
Graham L (2) | ||
| 559547 | 2007-06-15 09:05:00 | A good analogy can be found here (www.drbob42.com) which will try to explain it | Myth (110) | ||
| 559548 | 2007-06-15 12:52:00 | The analogy is very well explained.Thanks guys | Ninjabear (2948) | ||
| 1 | |||||