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 are the main components in .net?

0 Answers  


What is interface and abstract class in .net?

0 Answers  


Explain me difference between public and static modifiers?

0 Answers  


Should I implement finalize on my class? Should I implement idisposable?

0 Answers  


Dot Net is Platform Independent or Platform Dependent..?

2 Answers  


WHAT IS .net

3 Answers  


Explain difference between panel and groupbox classes using .net?

0 Answers  


Explain the difference between constants and read-only variables?

0 Answers  


Explain the Difference between value and reference type.

2 Answers   Infosys, Wipro,


ctype(123.34,integer) - should it throw an error? Why or why not?

1 Answers   Wipro,


How many types of generations are there in a garbage collector?

0 Answers  


How can you automatically generate interface for the remotable object in .NET with Microsoft tools?

1 Answers  


Categories