Java Forums

Main Menu
Home
Today's Posts
FAQ
Search
Contact Us

Java Network
Linux Archive
Java Tips
Java Tips Blog

Sponsored Links





Welcome to the Java Forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community, you will:

  • have access to post topics
  • communicate privately with other members (PM)
  • not see advertisements between posts
  • have the possibility to earn one of our surprises if you are an active member
  • access many other special features that will be introduced later.

Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact us.

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 04-21-2008, 09:45 AM
Member
 
Join Date: Apr 2008
Posts: 1
chravikumar008 is on a distinguished road
A core java Question
Assume that class A extends class B, ich extends class C, also all three classes implements the method test(). how can a methd in class A invoke the test() method defined in class C with out creating a new inctance of class C.


1) super.test() 2) super.super.test() 3) c.test()
Bookmark Post in Technorati
Reply With Quote
Sponsored Links
  #2 (permalink)  
Old 04-21-2008, 09:59 AM
Member
 
Join Date: Apr 2008
Posts: 91
javarishi is on a distinguished road
Hei
Hi
It is not possible. Only We Can make a call to immediate super class using super.

If you want to make a call to the particular class create object and call
Bookmark Post in Technorati
Reply With Quote
  #3 (permalink)  
Old 04-21-2008, 10:04 AM
sanjeevtarar's Avatar
Senior Member
 
Join Date: Apr 2008
Location: Delhi(India)
Posts: 251
sanjeevtarar is on a distinguished road
Quote:
Originally Posted by javarishi View Post
It is not possible. Only We Can make a call to immediate super class using super.

If you want to make a call to the particular class create object and call
ya you can call only immediate super class method by using super keyword.



sanjeev

Bookmark Post in Technorati
Reply With Quote
Sponsored Links
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
ckkl-core 0.3.0 JavaBean Java Announcements 0 11-10-2007 12:32 AM
ckkl-core 0.2.4 JavaBean Java Announcements 0 11-02-2007 05:17 PM
ckkl-core 0.2.3 JavaBean Java Announcements 0 10-31-2007 07:20 PM
ckkl-core 0.2.2 JavaBean Java Announcements 0 10-23-2007 03:34 PM
whats the difference between Java core,J2EE...... prince24 New To Java 2 07-11-2007 08:54 PM


All times are GMT +3. The time now is 10:50 PM.


VBulletin, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright ©2006 - 2007, www.java-forums.org