Give an example program for Getter /read-only methods in JAVA
Read-only:
//A Read-only class in Java
public class Student{
//private data member
private String institute ="MKG";
//getter method for institute
public String getInstitute (){
return institute;
}
}
| Is This Answer Correct ? | 0 Yes | 0 No |
What is concurrency? How will you avoid concurrency when dealing with dataset?
What security mechanisms to enforce for Authenticating and authorizing the users?
What's a windows process in .net?
What is RunTime Polymorphism?
5 Answers Deloitte, eClerx, Horizon, Intel, Pragna Technologies,
If you are executing these statements in commandobject. Select * from table1; select * from table2? How you will deal result set? 42. How do you sort a dataset.
differance between checkbox and rediobutton in vb.net?
What is meant fulltrust?
How would ASP and ASP.NET apps run at the same time on the same server?
How do you instantiate a complex number?
What is UDDI and how to register the web service in it?
which is the best dot net coaching center in visakhapatnam??
Differentiate between 'DataSet' and 'SQLDataReader' in ADO.NET?