Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


Give an example program for Getter /read-only methods in JAVA



Give an example program for Getter /read-only methods in JAVA..

Answer / hrindows@gmail.com

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

Post New Answer

More Dot Net General Interview Questions

Tell me about secure socket layer? How to make use of the technology?

0 Answers  


State the differences between the dispose() and finalize().

0 Answers  


How to load a user control dynamically in runtime?

0 Answers  


Interop Services?

0 Answers  


Explain why do we use the “using” statement?

0 Answers  


What is a metadata in .net?

0 Answers  


What are the different.net tools which you used in projects?

0 Answers  


What are the similarities and difference between class and structure in .net?

0 Answers  


Do I have any control over the garbage collection algorithm?

0 Answers  


How is .net able to support multiple languages?

0 Answers  


What is Atomicity?

3 Answers   Verifone,


is c#.net supports multiple inheritance?

10 Answers  


Categories