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



Give an example for setter/ write-only methods..

Answer / 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

More Dot Net General Interview Questions

What tools can I use to develop .net applications?

0 Answers  


What relationship is between a process, application domain, and application?

0 Answers  


Explain constructor.

2 Answers   Wipro,


Is .net capable of supporting multi-thread?

0 Answers  


What?s different about a Windows service as compared to a regular application?

1 Answers  


What is view state in .net?

0 Answers  


Why DLL files are needed. & how They are Created in DOTNET?

1 Answers  


Write the .net syntax for 'for loop'?

0 Answers  


How can we convert XML data into DataBase table IN .Net?

3 Answers   Indus Media, Wipro,


What is an anonymous method?

0 Answers  


How does you handle this COM components developed in other programming languages in .NET?

1 Answers   Satyam,


What is smart navigation in .net?

0 Answers  


Categories