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

What is CCW (COM Callable Wrapper) ?

1 Answers  


How to write an MMC snap-in for my Windows service?

1 Answers  


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

0 Answers  


What are the new features of Framework 1.1 ?

1 Answers  


Please explain about "this" object

4 Answers   CTS,


State some of the different languages supported by .net?

0 Answers  


Differences between datagrid, datalist and repeater in .net?

0 Answers  


What is the intermediate language between asp and asp.net1.0?

0 Answers  


Describe the role of global.asax.

2 Answers  


Please explain what is a delegate?

0 Answers  


How many types of design patterns available in .NET?

0 Answers  


what is the difference between early binding and late binding in .net?

2 Answers   Satyam,


Categories