answersLogoWhite

0

In eclipse java beans can be created by using getters and setters. Example: public class Login { public String lmail; public String getLmail() { return lmail; } public void setLmail(String lmail) { this.lmail = lmail; }

User Avatar

Wiki User

10y ago

What else can I help you with?

Related Questions

What are Java beans?

In eclipse you can create java bean by generating getters and setters. Getters and setters are generated as ' alt + shift + s + r'.


Who create Java and when?

Who create Java & when? Why he create java ? What are mane functions of it?


What is a java sack?

A Coffee Bean Sack


What is the difference between Java bean and bean?

JAVA beans and coffee beans are two very different things . JAVA beans are used to generate getters and setters. while coffee beans are use to make coffee.


How do you create object of javabeen in servlet?

A JavaBean is nothing but a regular Java Class and hence it can be instantiated using the new keyword and invoking the bean constructor


Can you create a constructor for an interface in java?

NO, we cannot create a contructor for an interface in java.


How do you create setup of core java project?

how to create setup file in core java


What is the difference between Java and Java bean?

AnswerMostly the java class and the Bean class are similar one.In Bean class we have getter and setter methods.Its just a naming convention.RegardsSanthosh raoInhttp://forums.sun.com/thread.jspa?threadID=526214Java Beans follow the Bean conventions:(1) Default, no-arg ctor,(2) Serializable,(3) getX()/setX() or isX()/setX() naming convention for read/write access to private data member X,(4) Can use java.bean.PropertyChangeEvent to notify interested parties when values change.(5) Can use java.bean.PropertyChangeListener to register for notification when a particular property changes."Normal" Java classes aren't required to follow any of these conventions.There's a great [url=http://java.sun.com/docs/books/tutorial/javabeans/]tutorial[/url] on Java Beans from Sun.


What is the best compiler can be used to create Java programs?

A Java compiler.


When creating a Bean how do you make its properties available to all possible users?

Declare the Bean's fields "public."Java 2, Question 10 of 40


What three objects are necessary to create a GUI in Java?

A computer, keyboard and Java compiler.


How do you create master page in jsp?

how to create a master page in java