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...

Difference between this(), super()?

Answer Posted / venki

this can be pointing to current object.
super can be used for accesing super class metods &varibles.
'this &super' are use full for constructers also .
thes two statements defining first satatement of
constructer.'this' is used for accesing current class
constuter.where as super is accessing super class
constructer.

Is This Answer Correct ?    56 Yes 5 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is a boolean used for?

1123


What is the best way to findout the time/memory consuming process?

1033


How static variable work in java?

1133


How do you remove all elements from an arraylist in java?

1042


How to change the priority of thread or how to set priority of thread?

1033


Is class forname reflection?

995


Explain about fail safe iterators in java?

1032


What is a Null object?

1648


Is namespace same as package in java?

997


What are mutable classes?

1069


How do you square a number in java?

1067


What are the steps involved to create a bean?

1172


Is main a function?

1064


Why are arrays useful in java?

1042


Can a static class have a constructor?

1011