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 |
Can u any body send the DotNet Interview questions and answers to my mail please....... mindukuru@yahoo.com
Do you know what is .net standard?
Difference between value type & reference types ?
What is a web service in .net?
where are connection strings stored?
Explain about .net assemblies?
Do you know what is the difference between an abstract class and an interface?
What is the difference between asp.net & vb.net and explain architecture?
How do you view the methods and members of a dll?
Tell me what is a “jagged array”?
Compare & contrast rich client (smart clients or windows-based) & browser-based web application
How to instantiate a delegate?