Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

Give an example for setter/ write-only methods

Answer Posted / hrindows@gmail.com

// A write-only class in Java
public class Student{
//private data member
private String institute;
//setter method for institute
public void setInstitute (String institute)
{ this.institute=institute;
}
}

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Explain about managed heap?

1153


Do you know what is the difference between an abstract class and an interface?

1070


What is an anonymous method?

1195


explain the states of a window service application?

1052


What is lambda expressions in c#?

1256


What's the problem with .net generics?

1038


what is the meaning silverligt control

2174


What is STA in .NET?

1130


Is .net an object oriented language? What are their components?

997


What is concurrency? How will you avoid concurrency when dealing with dataset?

1271


Do you know what is lambda expressions in c#?

1127


How viewstate is being formed and how it's stored on client in .net?

1043


Explain why do we use msmq?

1063


How is threading done in .net?

1063


Explain how to redirect tracing to a file?

1053