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

Explain about the Common Language Runtime?

0 Answers  


What is typical about a windows process in regards to memory allocation in dot net?

0 Answers  


What is Garbage Collection in .Net? Garbage collection process?

3 Answers  


What are nullable types in .NET

0 Answers   TryTechnicals Pvt Ltd,


What is static constructor, when it will be fired? And what is its use?

0 Answers  






How do you define the lease of the object in .net?

0 Answers  


Explain the .NET architecture.

9 Answers   HCL, Idhasoft, Scandent, TCS, TechnoLinks,


Please explain what is the difference between odbc and ado?

0 Answers  


i had attended to infosys interview on 17th april 2010...on .net..3+ experience for Technology Analyst .. to my knowledge i did well in technical and hr whether i loose the interview or still processing is taking place..am confused please. what accuatly would be happend?

0 Answers  


Do you know what's the difference between .net and laravel?

0 Answers  


What do the terms “boxing” and “unboxing” mean?

0 Answers  


What is Polymorphism? How does VB.NET/C# achieve polymorphism?

0 Answers  


Categories