A setter is used to change a field; a getter to get its value. The fields themselves are usually declared as private, for reasons that can be summarized with the term "encapsulation".
In eclipse you can create java bean by generating getters and setters. Getters and setters are generated as ' alt + shift + s + r'.
As the name suggest Setters are to set value of an attribute and Getters are to get value of an attribute. sometime they are also called java beans.
GETters and SETters are functions that GET and SET the value of a private variable.example:.........private int power;// -----------------------......................................................... // |.......................................................... // |........................................................... // |........................................................... // | The User Gets The value of power.......................................................... // |public int getPower(){ //...................... |return power;//
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.
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; }
Java does not support Pointers and hence you cannot use it in Java.
Java is exclusive to surfing the web. Some web sites use Java to embed videos, others use Java for advertisements.
Java does not have pointers
No
Java 7 is the most current version of Java. Many movies and games use Java.
Methods that are neither mutators (setters) or accessors (getters). This primarily includes the class constructors (the initialisers) and the class destructor (the restorer).
You can use Head First Java or Java Complete Reference to learn Java.