Geeks Talk

Prepare for your Next Interview




method in a method

This is a discussion on method in a method within the Java forums, part of the Software Development category; Is it possible define method with in a method ? for eg: int dis(int a) { String d ; float foo() { } }...


Go Back   Geeks Talk > Software Development > Java

Register FAQ Members List Calendar Mark Forums Read
  #1 (permalink)  
Old 06-07-2007
Junior Member
 
Join Date: May 2007
Location: Mysore
Posts: 16
Thanks: 1
Thanked 1 Time in 1 Post
umeshap is on a distinguished road
method in a method

Is it possible define method with in a method ?

for eg:

int dis(int a)
{
String d ;

float foo() {

}
}
Reply With Quote
Sponsored Links
  #2 (permalink)  
Old 06-08-2007
Junior Member
 
Join Date: Dec 2006
Location: chennai
Posts: 13
Thanks: 4
Thanked 3 Times in 3 Posts
daisy_deepa is on a distinguished road
Re: method in a method

I think it is not possible in Java.
Reply With Quote
The Following User Says Thank You to daisy_deepa For This Useful Post:
  #3 (permalink)  
Old 06-08-2007
Expert Member
 
Join Date: Nov 2006
Location: Hyd-IND
Posts: 523
Thanks: 1
Thanked 55 Times in 46 Posts
sutnarcha is on a distinguished road
Re: method in a method

There could be a function call within the definition of another function but not a function definition.
__________________
Lack of WILL POWER has caused more failure than
lack of INTELLIGENCE or ABILITY.

-sutnarcha-
Reply With Quote
  #4 (permalink)  
Old 06-08-2007
Junior Member
 
Join Date: Apr 2007
Location: shimoga
Posts: 8
Thanks: 1
Thanked 1 Time in 1 Post
vidya_kr is on a distinguished road
Re: method in a method

this is possible in c++, but not sure about java
Reply With Quote
  #5 (permalink)  
Old 06-08-2007
Junior Member
 
Join Date: Jun 2007
Location: USA
Posts: 9
Thanks: 0
Thanked 1 Time in 1 Post
Surekha venkat is on a distinguished road
Re: method in a method

hi
it's not possible to define method inside method..
java doesn't support inner metods
Reply With Quote
Reply

  Geeks Talk > Software Development > Java


Thread Tools
Display Modes


Similar Threads

Thread Thread Starter Forum Replies Last Post
method overloaing? psuresh1982 Java 5 09-07-2008 06:40 AM
Suggest me the method for automation sonalee27 WinRunner 1 05-04-2007 10:14 AM
Using POST method:ASP.NET saswata.purkayastha AJAX & XML 0 04-27-2007 07:46 AM
Remote Method Invocation prakashnemesis Test Cases 1 02-12-2007 02:37 PM
Help me to Know about this Method blenda ASP.NET 1 11-12-2006 03:16 PM


All times are GMT -4. The time now is 01:46 PM.


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.1.0
Copyright © 2008 GeekInterview.com. All Rights Reserved