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 |
Explain what is the difference between a class and an object, and how do these terms relate to each other?
When would you use .NET Remoting and when Web services?
Please explain what is the difference between constants and read-only variables?
How will u load dynamic assembly? How will create assemblies at run time?
What is a design pattern and what is it for?
What?s Singleton activation mode?
Why is .net used?
What are three common acronyms used in .net, and what do they stand for?
Explain how viewstate is being formed and how it's stored on client in .net?
What are the two kinds of properties.
What are an object and a class?
Is atl redundant in the .net world?