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 CCW (COM Callable Wrapper) ?
How to write an MMC snap-in for my Windows service?
Tell me about secure socket layer? How to make use of the technology?
What are the new features of Framework 1.1 ?
Please explain about "this" object
State some of the different languages supported by .net?
Differences between datagrid, datalist and repeater in .net?
What is the intermediate language between asp and asp.net1.0?
Describe the role of global.asax.
Please explain what is a delegate?
How many types of design patterns available in .NET?
what is the difference between early binding and late binding in .net?