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 are the collections you've used?

0 Answers  


Who is using .net core?

0 Answers  


Tell us what is json data, and what is one way that .net developers can work with json?

0 Answers  


How to convert a .NET object into COM operabililty?

0 Answers   Petranics Solutions,


Compare client server application with n-tier application

0 Answers  






Hi, Requirement is: try { \\SQL Query } catch(Exception i) { print a } catch(SQLQueryException e) { \\SQL Query } Got Exception in "try" block. Which "catch" throws exception and Why??? Please provide the answer in detail.. Thanks for the help!!!

3 Answers   3i Infotech,


What is the lapsed listener problem?

0 Answers  


What is use of ContextUtil class?

1 Answers  


How to prepare parametrized (with more than one parameters) crystal report.pls tell me the code procedure, if any body can?

0 Answers  


How to get the number after decimal point in .net?

0 Answers  


What is .net technology?

0 Answers  


Explain dataset.acceptchanges and dataadapter.update methods in .net?

0 Answers  


Categories