How is it possible ?

Hi all,
I have the java file with 2 inner classes , each of the inner class has its own main method to run. Is it possible ?
class outer3 {
static class inner3 {
public static void main(String as[]) {
System.out.println("From Inner Class ");
static class inn2 {
public static void main(String as[]) {
System.out.println("From Inn2 Class ");
public static void main(String as[]) {
System.out.println("From Outer Class");
And also I want to know the actuall use of using more than 1 execution point in the class.
regards,
namanc

I don't think so. I've never done such a thing. Looks goofy and contrived, IMO. If you really need main() for those, perhaps they shouldn't be inner classes. Package visible might be enough in that case.
The best way to find out is to compile a small example, like the one you posted, and try it. The compiler is the best forum consultant you can find. If it won't let you, then the answer is no.

Similar Messages

  • Unfortunately, I lost by an update all the apps on my iPad 2. Now I can not pull the data from the cloud to my iPad. How is this possible?

    Unfortunately, I lost by an update all the apps on my iPad 2. Now I can not pull the data from the cloud to my iPad. How is this possible?

    If you just installed iCloud does that mean you updated the iOS that's running on your iPad?  If so, you'll want to restore all the programs you have from the backup you hopefully made.
    Refer to these articles for help.
    iTunes: Backing up, updating, and restoring iOS software.
    If you don't want to use iCloud, simply don't activate it.
    You can also download the programs again.
    If you live in a country that supports re-downloading apps then you can re-download them.  You can refer to this article for more help.
    Downloading past purchases from the App Store and iTunes Store
    What to know if your country supports downloading past purchases?
    iTunes in the Cloud Availability

  • I just bought my macbook pro and it's charged up to 100% and is still plugged in but now shows the battery at 98%.  How is this possible when it's plugged in to the charger and the green light is on?

    I just bought my macbook pro and it's charged up to 100% and is still plugged in but now shows the battery at 98%.  How is this possible when it's plugged in to the charger and the green light is on?

    The system regularly lets the battery drop to about 95% when on the charger, then recharges to 100%.  This lets the batery exercise "just a little" all of the time and saves the recharge curcuits from overuse.
    Regualr occurence for me.
    Also ... you need to let your battery work at least once per month.  Let it run down to 40%, but not less if you can at all avoid it.  Running thr battery fully dead will shorten the battery life significantly.

  • Mini Display to VGA adapter stopped. The Mini Display to HDMI is still working fine. How´s that possible?

    The mini display to VGA adapter had stopped, whinle the Mini Display to HDMI keeps working fine. The minid display to VGA adapter was replaced and the VGA cable as well, and the problem is the same. This test was made with two diferent monitors with VGA entries. How´s that possible to happen? Is that a configuration trouble in the MBP?

    The Apple´s customer support gave us the solution for this problem:
    SMC reset
    PRAM reset
    The VGA adapter return to work properly aflter this procedure.

  • I want to buy a Ipod Nano 16gb and it says it holds up to 4,000 songs, and 16 hours of video but on my Itunes I have 2,593 songs and it says I have 19.88 gb. How is this possible?

    I want to buy a Ipod Nano 16gb that says it holds up to 4,000 songs, 16 hours of video, and 14,000 pictures. On my Itunes Library, I have 2,593 songs and it says I have 19.88 gb just of songs. How is this possible? If I buy the Nano, will I not be able to have all my songs on the ipod? The music is my first and only prioarity. I want to be able to have up to at least 3,000 songs, even if that means not having video or pictures. Can someone please help me?

    Daniella04 wrote:
    I want to buy a Ipod Nano 16gb that says it holds up to 4,000 songs, 16 hours of video, and 14,000 pictures. On my Itunes Library, I have 2,593 songs and it says I have 19.88 gb just of songs. How is this possible? If I buy the Nano, will I not be able to have all my songs on the ipod? The music is my first and only prioarity. I want to be able to have up to at least 3,000 songs, even if that means not having video or pictures. Can someone please help me?
    Daniella,
    The estimated song capacities, such as 4000 songs in 16 GB, are based on 4 minute songs of 4 MB each, which is what you get at 128 encoding. 
    Most of us nowadays use well above 128.  (For example, the iTunes Store and Amazon MP3 both sell songs only in 256.)
    However, you can still make more songs fit!  When you sync your iPod, use the option to "convert higher bit rate songs," as pictured.  Choose 128.  This fits more on the iPod, but does not change the songs in your library.

  • HT5570 My six-year old grandson appears to be able to make purchases on the TV without having to enter the password and yet every other device i use (e.g. iPad, iPhone, iPod) is password protected. How is that possible?

    My six-year old grandson appears to be able to make purchases on the TV without having to enter the password and yet every other device i use (e.g. iPad, iPhone, iPod) is password protected. How is that possible when I have to use my password to access such services on all other devices?

    DominicDeBurca wrote:
    My six-year old grandson appears to be able to make purchases on the TV without having to enter the password and yet every other device i use (e.g. iPad, iPhone, iPod) is password protected. How is that possible when I have to use my password to access such services on all other devices?
    Having AppleTV remember the password is optional.
    Logout of iTunes store, log back in and hopefully next time you come to purchase you'll be prompted for your password but decline the option to remember it.  You might also want to look out of parental controls on the unit.
    AC

  • Using Maverick, how is it possible to open more than one calendar window?

    Hi, I'm using Maverick 10.9.1
    My question is: how is it possible to open more than one calendar window? i would like to have on the right my personnal calendar dates and on the left, my company calendar.
    Many thanks in advance for your help!
    ph

    See if the section on group calendar helps.
    http://www.dummies.com/how-to/content/basics-of-calendar-in-os-x-mavericks.html

  • When i send a text message with my new iphone 5 to my wife who is now using my old Iphone 4 we both receive the message. How is this possible? Also she receives all text messages sent to me

    when i send a text message with my new iphone 5 to my wife who is now using my old Iphone 4 we both receive the message. How is this possible? Also she receives all text messages sent to me. She obviously has a different phone number and a different provider

    See here to create a new apple ID
    http://support.apple.com/kb/HE37
    good luck

  • I have an ipad and iphone sharing icloud.  The ipad is using 268mb, the iphone 2.6.  My plan is 5gb but it keeps saying I don't have enough space to back them up.  How is this possible?

    I have an ipad and iphone sharing icloud.  The ipad is using 268mb, the iphone 2.6.  My plan is 5gb but it keeps saying I don't have enough space to back them up.  How is this possible?

    Hey sameyrs2,
    Thanks for the question. Based on what you stated, it seems like you are getting a message when trying to backup to iCloud. I would recommend that you read these articles, they may be helpful in troubleshooting your issue.
    iCloud: Understanding Backup alert messages
    Manage your iCloud storage
    Thanks for using Apple Support Communities.
    Cheers,
    Mario

  • Lost Mode and Play Sound are "Pending."  However, iCloud indicates that it connected and backed up to iCloud at a date that is 1 week after it went missing.  How is this possible without locking (Lost Mode Pending an internet connection)

    Hi,
    My wife lost her iPhone two weeks ago while on vacation in London (cell service inoperative in foreign country).  Using Find My iPhone app on my device, I activated Lost Mode and Play Sound.  However, both are listed as "Pending," since it those actions require the phone to connect to the internet (wifi only due to no cellular data coverage.).
    We recently returned home and purchased a new iPhone.
    However, when looking to restore the apps/settings from her old phone using a previous iCloud backup, iCloud indicates that the old phone connected to iCloud and backed up the original phone at a date that is 1 week after it went missing.  How is this possible without locking (Lost Mode Pending an internet connection)?
    If the phone was activated and connected to the internet via a wifi signal, shouldn't it immedately lock, show up on the map, Play Sound, and send me an email that the phone has been found?
    I also read somewhere that if running iOS 7, the iCloud website interface enables you to track previous locations, for instance if the phone moves from wifi hotspot to hotspot.  Is that true?  If so, how do I do that?
    Thank you for your time, and have a great day!
    Sincerely,
    - Matt

    just giving this a wee bump as time is of the essence here and i need advice/ answers quick!
    apologies if i've broke any rules!
    alex

  • I do have wifi connection but no internet, how is this possible? I logged in to the internet at my friends place and when I got home my own internet was not working anymore

    I do have wifi connection but no internet, how is this possible? I logged in to the internet at my friends place and when I got home my own internet was not working anymore

    This is possible to be connected to WiFi but not internet.
    You connect to your modem/router via WiFi and whether it is connected to the internet or configured properly to route the internet to WiFi devices is a different story.
    Now if you've already reset your WiFi (try disabling and enabling) and perhaps even restarting your MBP
    Then make sure that your modem/router is connected to the internet.
    You can try any other device, lights on the modem/router or use Eth cable to test.
    Report back your findings.

  • I have an iphone 6 and my ex partner is able to read my text imessages remotely without having access to my phone. How is this possible and can anybody help me with this matter as it is a gross invasion of my privacy?

    Hi everybody,
    I have an iphone 6 and  my ex partner is intercepting and reading my imessage text messages remotely and without any access to my phone. Can someone shed any light on how this is possible and if so provide me with a solution to my problem as this is a gross invasion of my privacy and i seem powerless to combat this problem!

    It sounds as if your ex has your AppleID and passcode. Change the passcode.

  • IPhone 3G still connecting to 2.4 GHz N network. How is that possible?

    I have an Extreme N that is set to 2.4 GHz N and extended with an Express N. Question is, how is it possible that my iphone 3G and touch are still connecting to WiFi? Should they not even see my N network since the are both G?

    Kind of odd... Mine did the same thing with my extreme. I have it set to 2.4 N only and yet my iphone picked it up and connected with no problems. Are we certain that they didn't stuff an N card in there? I know what the specs say but it clearly saw and connected to the router. I'm a network engineer and know what mine is set to. In fact, I checked it.

  • How much is possible?

    I'm currently designing a new website. It will be a very informative website (for dog owners in the city I live in), but it should also be fun and just useful.
    I already have two websites, done in iWeb, and I want this one to be even more professional. What I'm looking for is some interactivity, like a rating system, or a comment system. I'm also looking into making a bit of money with the site.
    But how much is possible in iWeb? I've been surprised by the software more than once, but I'm always having issues with the lack of interactivity. Should I look into other software or do I just need some advice?

    A rating and comment system is not what I consider interactivity.
    And speaking about it, is searching for answers an interactivity?
    http://www.honden.nl/
    Look at the search field.
    And on this site they talk about it too :
    http://www.doggiesparadise.be/hondenwinkel/content/4-over-ons
    Daarnaast is er ook een interactief gedeelte, namelijk het hondenforum. Hier kan iedereen een leuke en interessante bijdrage leveren rond allerlei uiteenlopende onderwerpen. Alles wordt op een speelse manier aangepakt, waarbij de bezoeker centraal staat. De doelstelling is niet alleen om voor ontspanning te zorgen, maar tegelijk ook een leerrijke ervaring te bieden.
    How much dynamics do you want?
    That's what I mean by looking beyond iWeb.
    And here's a similar question :
    Trying to set up interactive website...

  • I am trying to copy and paste a 734mb film on to an 8GB usb but it keeps saying "It cannot copy as there isn't enough space". How is this possible? And how do I put the film on the usb?

    I am trying to copy and paste a 734mb film on to an 8GB usb but it keeps saying "It cannot copy as there isn't enough space". How is this possible? And how do I put the film on the usb?

    Look at the USB stick in Disk Utility and check whether it may be partitioned or have other software on it taking up space.

  • How is it possible that a target has two deltas requests with the exact sam

    HI,
    How is it possible that a target has two deltas requests with the exact same records?

    Hi Mohammed,
    There are couple of reason behind it.
    main reason is
    take one scenario we have DSO as source and cube as target.
    Now DSO contains only 1 request, which i have loaded to cube by using delta.
    after that i have deleted DSO content by using right click on it and delete data.
    (hope u know that it will not delete request from target automatically)
    now once again i have loaded same request from datasource to DSO
    and then loaded delta again from DSO to cube.
    In this case for 1 single request in DSO you can see 2 request in cube with same data.
    Regards,
    Ashish

Maybe you are looking for

  • Toggle Group Visibility while sorting results in error

    I have a custom website in which we have embedded SQL Server Reporting Services reports.   The report in question has 3 nested row groups.  The parent group is always shown, but the 2 child groups default to hidden and have their visibility toggled b

  • Ipad gen 3 to tv (HDMI)

    i bought an adapter from amazon, to connect my ipad to my tv. apparently it's simply 'plug & play', however i have plugged and nothing is playing. is there something that i need to do to get the image mirrored on my tv screen? i can't see anything on

  • Hardware load balancing with session stickiness

    Hello,           We are looking for a hardware based solution to load balance 4           unclustered weblogic servers. These servers are software replicas of           each other and share a common database. We need a solution that           provide

  • There was an initialiation error

    I just bought a new LG GE20 20x DVD +- R Write Speed External Super Multi DVD Rewriter. I put a movie DVD in and it mounts on the desktop with the name of the movie, then an error appears stating There was an initialization error. [A valid DVD Drive

  • Aperture 2 return of the black viewer

    I'm using the trial (waiting for my boxed version to arrive) on a project with about 70 images I took last night with my 40D. The problem that I used to have in an earlier version of 1.5 but was fixed in 1.5.6 or one of the later updates has returned