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 |
Tell us the differences between an interface and an abstract class in .net?
Explain how to load the contents of an xml file into an xmldocument object?
How do you view the methods and members of a dll?
What is an interface and what is an abstract class? Please, expand by examples of using both. Explain why?
How viewstate is being formed and how it is stored on client in .net?
What is CCW (COM Callable Wrapper)
How to implement CAS in .Net?
Resource Files: How to use the resource files, how to know which language to use?
What is the use of design pattern?
If I am writing in a language like vb or c++, what are the procedures to be followed to support .net?
What is clr in .net?
What is the difference between boxing and unboxing?