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 us the differences between an interface and an abstract class in .net?

0 Answers  


Explain how to load the contents of an xml file into an xmldocument object?

0 Answers  


How do you view the methods and members of a dll?

0 Answers  


What is an interface and what is an abstract class? Please, expand by examples of using both. Explain why?

0 Answers  


How viewstate is being formed and how it is stored on client in .net?

0 Answers  


What is CCW (COM Callable Wrapper)

1 Answers  


How to implement CAS in .Net?

0 Answers   247Customer,


Resource Files: How to use the resource files, how to know which language to use?

1 Answers  


What is the use of design pattern?

0 Answers  


If I am writing in a language like vb or c++, what are the procedures to be followed to support .net?

0 Answers  


What is clr in .net?

0 Answers  


What is the difference between boxing and unboxing?

0 Answers  


Categories