Question main method in java, please help

Guys I looked everywhere on the internet and can not understand one of these questions: I would appreciate any help on them. Is the first and most important thing I would like to know, which is static: what is a static int or a static method of hand? Why is this necessary, and what is its role? Could you please give an example? Also, why String [] args is necessary within the parameters of the main method? Is it so that it can run it? Last thing: objects. Where can I learn about them? I know that they are made with the new operator, but do not include their use? Could you explain why they are useful? You can give them values? and how they relate to the operator point? Once these are answered, I will be so happy because I feel like I am actually somewhat familiar. Right now I'm just confused... Thank you so, so much in advance!

Is the first and most important thing I would like to know, what is static

"static" means that the element is associated with the class itself rather than an instance: so it is accessible to all instances.

Could you please give an example?

public static void main(String[] args)

is an example, but you already knew that. I don't really understand the question.

Also, why String [] args is necessary within the parameters of the main method?

'args' receives the arguments that you type on the command line after the class name or jar, depending on how you call the application.

It is all covered in the documentation, which you should read before you ask more questions.

Last thing: objects. Where can I learn about them?

If you don't know about objects you do not learn about them by asking questions on a forum. It's much too big a subject. You get a book.

Tags: Java

Similar Questions

  • Question of CSS... (please help)

    Hi all...

    Anyone who is good in CSS.
    Please help me with the following problem.

    Topic: 9
    Apex: 4.1
    Browser: IE 7
    Database: 11g

    I use the "" side bar area' "THEME 9.
    The "" TITLE bar"" sidebar region is in "'red.'" »

    I tried to change it to '' blue'. I tried the following styles, but it has not applied

    {code}
    . Sidebar-region h3 {}
    background-color: rgb (118,164,190);
    }

    } .sidebar-region
    background-color: rgb (118,164,190);
    }

    {code}

    I checked the sidebar region model and found the classes it uses.


    Here are the following classes using the APEX.

    {code}
    } .sidebar-region
    float: right;
    Width: 200px;
    display: inline;
    overflow: hidden;
    }

    . Sidebar-region h3 {}
    Width: 192px;
    line-height: 22px;
    height: 22px;
    margin: 0;
    padding: 0 0 0 9px;
    Background: url (.. /images/BG-title-SB.gif);
    color: #fff;
    }

    . Sidebar-region h3 {}
    Width: 192px;
    line-height: 22px;
    height: 22px;
    margin: 0;
    padding: 0 0 0 9px;
    Background: url (.. /images/BG-title-SB.gif);
    color: #fff;
    }

    . Sidebar-region .box {}
    Background: url (.. /images/BG-Box.gif);
    margin: 0 8px 0;
    }

    . Sidebar-region .frame {} .box
    Background: url (.. /images/BG-Box-Frame.gif) no-repeat 0 100%;
    Width: 200px;
    overflow: hidden;
    padding: 4px 4px 6px 6px;
    }

    . Sidebar-region content {}
    margin: 10px 0 0 2px;
    }

    {code}



    Thank you

    Hello

    H3 tag have the image as a background.
    http://Apex.Oracle.com/i/themes/theme_9/images/bg-title-SB.gif
    This is why you cannot assign color background-color style.

    You need create your own picture or use another image and change of style as

    .sidebar-region h3 {
         background: url(#IMAGE_PREFIX#/apex/builder/bg-title-blue.gif) repeat scroll 0 0 transparent!important;
    }
    

    Or remove the style of with on background image path

    .sidebar-region h3 {
        background: #76A4BE!important;
    }
    

    Kind regards
    Jari

    http://dbswh.webhop.NET/dbswh/f?p=blog:Home:0

    Published by: jarola December 12, 2011 21:11

  • Issue of GUI easy Java Please Help!

    Help, please! whenever I try to run this code:

    package here;

    import java.awt.Graphics;
    import java.awt.Color;
    MPort javax.swing.JFrame;


    SerializableAttribute public class Window extends JFrame {}
    public Window() {}

    setVisible (true);
    setDefaultCloseOperation (JFrame.EXIT_ON_CLOSE);
    setResizable (false);
    setSize (500,500);

    }

    {} public void paint (Graphics g)
    g.drawString ("Hello!", 75, 75);
    }

    Public Shared Sub main (String [] args) {}
    New Window();

    }
    }

    This keeps happening http://www.youtube.com/watch?v=k7htCX6a4BI & feature = watch_response

    (I didn't post this video but looks like I'm not the only one that this has happened)

    It's like I have a weird screenshot :/
    I tried to adjust the color of bacgkround and I tried to use netbeans instead of the eclipse. none worked.

    Any help would be really great! I don't want to discourage you to learn java!

    First of all, it contains a syntax error.
    Call the super paint method trying to override the paint method.

    package here;

    import java.awt.Graphics;
    import java.awt.Color;
    to import javax.swing.JFrame;

    SerializableAttribute public class Window extends JFrame {}
    public Window() {}

    setVisible (true);
    setDefaultCloseOperation (JFrame.EXIT_ON_CLOSE);
    setResizable (false);
    setSize (500,500);

    }

    {} public void paint (Graphics g)
    first call the paint method
    Super.Paint (g);

    g.drawString ("Hello!", 75, 75);
    }

    Public Shared Sub main (String [] args) {}
    New Window();

    }
    }

    Published by: VID on March 31, 2012 05:05

  • I want to reset my question in my apple ID * please help me

    Please I need your help to reset my question answers because the reset email, I do not know it *.

    You have to ask Apple to reset your security questions. To do this, click here and choose a method; If this page does not list one for your country or if you are unable to call, complete and submit this form.

    (137520)

  • Windows 7 Internet on the main office/main screen being blocked please help

    For some reason any Windows 7 does not allow programs download from the internet. Programs (Adobe Digital & OverDrive Media are the two main) used to be able to download, but they no longer work. I've placed on the green list to come through the fire wall and I'm not running on a proxy server. I'm at a loss as to why he worked for years and now he's no longer. I tried the two patches that were given for both programs and nothing has worked. For Overdrive Media I get the answer that it is not connected to the internet and to digital Adobe, I get a different error that I looked and it said that the program could not through the firewall, changed cela setting and still have the same error. I also used to get the tab accu-weather on the top of the scree, but now he tells me that I am not connected to the internet. But clearly, I am as I am typing this question. Even gadgets that provides windows that can be placed on the main screen, like a clock and weather report that they are unable to connect to the server, that's why I think that it is not the firewall that is causing this problem I tried to disable the firewall and Windows program and I still have the same question. We did not have any changes made to our Web server or provider and the internet seems to work fine as well. I have also just finished a computer virus scan to determine if there is a problem here and nothing came. I tried to unplug the router to reset my IP address and that did not help. Any suggestion would be great.
    Thanks in advance for any help
    See you soon
    Janine
    Oh also note, my utorrent program does not seem to have any get what throughoh transmitter and the main provider of internet if I use Firefox.

    Hello

    A lot of programs in a Windows 7 computer that depends on the connection to the internet are controlled by settings of Internet connection in the computer. We can access these settings by going to Internet Options of Internet Explorer.

    You can check if your Internet Explorer is set to work offline?

    You can check that by following these steps:

    1. open Internet Explorer.

    2. Once Internet Explorer is open, press Alt and F together on your keyboard keys.

    3. make sure that the work offline option is not selected in the drop-down menu that appears.

    If your problem is still there, you can check these settings once:

    1. press the Windows and R keys on your keyboard to open the run box.

    2. in the run box, type inetcpl.cpl and press enter on your keyboard. This should open the Internet Properties dialog box.

    3. click on the connections tab.

    4. then click on LAN settings.

    5. make sure, none of these options in the local network settings are selected. If none of these three options have been selected, please deselect the and click OK.

    Now please check whether or not your gadgets and other programs that had the issue work.

    I hope this information helps you. Please respond with the status of the issue so that we can help you further.

  • I am trying to configure MÜDE for my organization and have some questions about its feasibility. Please help me.

    I'm looking for in the MUDE (multi development environment - user) for future developments of the RPD and I tested various scenarios and I came across a few questions:

    1. do you think that we can add new objects to an existing project without checking in?

    2. in case I missed a few items for development while creating a project, so how do I add them to the project?

    3. special security on objects - it can handle special security on objects (example fields assigned to hidden only)?

    4 should we we look at a timetable of the releases (only the new changes to RPD each 60 / 90 days?)

    I know that few issues may be vague, but any idea on those who could help me a lot.

    Thank you in advance!

    1 MUD is based on projects of RPD - amending the RPD requires checkout / mud
    2. proposed adjustments are made in the DPR MUD Master

    3 Please give details...
    4 RPD development should be managed and disciplined; cadence of releases is entirely up to you.

  • I am trying to configure MÜDE for my organization using Oracle BI administrator and have some questions about its feasibility. Please help me.

    I'm looking for in the MUDE (multi development environment - user) for future developments of the RPD and I tested various scenarios and I came across a few questions:

    1. do you think that we can add new objects to an existing project without checking in?

    2. in case I missed a few items for development while creating a project, so how do I add them to the project?

    3. special security on objects - it can handle special security on objects (example fields assigned to hidden only)?

    4 should we we look at a timetable of the releases (only the new changes to RPD each 60 / 90 days?)

    I know that few issues may be vague, but any idea on those who could help me a lot.

    Thank you in advance!

    I don't want a double amount of answers. Because I have no response from the other group felt that it was in the wrong place or group sleeping and it took a double signal. Of course, I will be closed one of them when the answers start coming.

  • Major question Dhcp on cisco switch please help!

    Hi Experts,
    One of our remote sites has Cisco 2811 router and switch 3650. The switch provides switching and DHCP PC to all customers.
    Please see attachment for more details files.
    Problem:
    After the expiry of the term of the DHCP lease (10 hours), some of the PC (Windows 7) on the remote site received Windows popup says that duplicate IP. Then, the network connectivity of the computer has been disconnected. After you restart the PC, then its network connectivity was back to active state.
    If all the computers have been placed in static mode, there is no problem.
    Please see the attached configuration of the router and Switch.
    Thank you very much

    It's strange this generally solves the problem of IP duplicate

    How to put the DHCP server on the router instead of this?

    what you get when you place an order 'show ip dhcp conflict '.

    also can you share the command 'show ip dhcp pool '.

    Richard

  • the library exposed interface. Expert Java please help.

    Hi all.

    Excuse my noobishness once more, but I have a design-oriented question.

    I want to offer some features of other applications via library.

    But want to restrict the user from this library to only a set limited features.

    (1) is there a way of only a set of classes (obviously public) to be exposed to the user?

    For example, let's say we have 2 classes:

    public class ExposedFunctionality
    {
     private HiddenFunctionality hf = new HiddenFunctionality();
     public void useMe()
     {
       // do something
     }
    }
    
    public class HiddenFunctionality
    {
    // ... some meat
    }
    

    (2) how to hide the HiddenFunctionality of the user of the library?

    Thank you

    Also, if you want higher levels of functionality, you can use the CodeSigningKey to do certain functions, classes, etc. limited. I use this to limit what applications can read data that is generated by my applications. The only thing I'd be suspicious of OS5.0 is (and I think that 4.7) If you place a CodeSigningKey on a file, even the operating system cannot read from the file and the default FileExplorer will often hang (sometimes mometarily... sometimes a few minutes) in a directory where it is a signed file.

  • Questions Email to Smartphones blackBerry, please help!

    First of all, thank you in advance for all those involved to help me.  Secondly, I am a newbie to BB, the past two weeks and I really can't believe I it worked for a long time without one, simply amazing!  Here's my email problem that I knew from the beginning: I have two email accounts on my curve, one is my home email, the other is my work email.  The account that I have problems with is my work email account, I use Microsoft Outlook, and I get not always my email on my curve.  We don't have a BB Enterprise server, so I have to manually connect to the synchronization.  The other day, while in my office work and my BB on my desk, I was told on my computer that I have new email, email never appeared on my BB.  Today, while driving to a job, I sent my BB using my work email account, when I got back to my office on my work computer, I noticed that the recipient has responded, but he went only to my computer, not my BB.  Am I missing something or do something misconfigured?  Thanks again for any help.

    - so I understand that you only receive their mail on BB if Outlook stops (you might be receving messages on BBthough)

    -C' is what you need to do: set outlook to leave a copy on the mail server

    Steps to follow: http://www.blackberry.com/btsc/KB12283/

  • Unable to download the trial version of Captivate 9 - questions with Akami Download Manager - please help

    I used Adobe Captivate in the past without problem and need to download version 9 to introduce the software to a new team, I am managing

    I have correctly installed the Akami Download Manager and attempted to start the download for trial.  Opens the window of the Manager, but the two files to download are simply "waiting" without other links, options, or features available. It is as if it is frozen.

    I worked in the Locksmiths for "download trial" and "Download Akami Manager" himself without success.

    My system specs are suitable, using IE11 for download, on a line hard, cache/pop up and extremely lax security settings... Nothing works.

    I have uninstalled and reinstalled the Download Manager and tried to restart the trial a dozen times download (for which I don't even have a welcome email indicating me that time runs on the trial), but every time, it's the same story.

    Has anyone else had this problem?

    Thank you very much

    John

    Try the Akamai road to jump...  Adobe Captivate 9 Direct download links: free trials with no Akamai | ProDesignTools

    Don't forget to follow the steps described in the Note: very important Instructions in the section on the pages of this site download and have cookies turned on in your browser, otherwise the download will not work correctly.

  • Please help restore the security questions for me.

    I'm trying to restore security questions via the website, but there is no success. Please help me to reset for me.

    You must ask security team account Apple to reset your security questions. To contact them, click here and choose a method; If this page does not list one for your country or if you are unable to call, complete and submit this form.

    (144314)

  • I have not remenber my SECURITY QUESTIONED this ACC, please help me

    I have not remenber my SECURITY QUESTIONED this ACC, please help me. I have remenber login pasword.

    You must ask security team account Apple to reset your security questions. To contact them, click here and choose a method; If this page does not list one for your country or if you are unable to call, complete and submit this form.

    (143383)

  • I forgot my secret question, answer and the second email but I have the password of my ID Apple and my phone number. I want to receive by email for my secret to my Apple ID issue because it is a gmail account. Please help me

    I forgot my secret question, answer and the second email but I have the password of my ID Apple and my phone number. I want to receive by email for my secret to my Apple ID issue because it is a gmail account. Please help me

    You have to ask Apple to reset your security questions. To do this, click here and choose a method; If this page does not list one for your country or if you are unable to call, complete and submit this form.


    (139026)

  • Hello, I forgot my security questions, I want to change but the need for an aid station. And I do not add a post before rescue. How can I add now? Please help me. TNX.

    Hello, I forgot my security questions, I want to change but the need for an aid station. And I do not add a post before rescue. How can I add now? Please help me. TNX.

    You can not and need to ask Apple to reset your security questions. To do this, click here and choose a method; If this page does not list one for your country or if you are unable to call, complete and submit this form.

    (137646)

Maybe you are looking for

  • Can I transfer data between a new MacBook (USB - C) to my iPad Pro?

    I have an iPad Pro.  I also have a new MacBook on command.  The new MacBook uses USB - C to 'universal' and data transfer.  Can I transfer data to/from my iPad Pro with a lightning bolt - cable USB - C? Thank you

  • FORMIDABLE HINGE PROBLEM LIKE 6!

    OK it's finally happened, my wife opened the laptop this morning and surprise! the left hinge cracked and bent the housing of the display, leaving us unable to open or close the laptop. This is obviously a design flaw, I am an engineer in mechanics b

  • Move my documents on a second HDD internal?

    I would like to move documents, pictures, music, video files from the C: drive to a second hard drive internal, D: drive.  Basically, moving libraries folder.  My drive start without data on them.  And my Window 7 Pro 64-bit operating system.

  • What is so special about TAF (compared to the normal recovery)?

    The GI version: 11.2.0.4OS: Oracle Linux 6.5Question1.By default (without FAT), when an instance fails, queries are failed over to another node. So, what advantage a failover Transparent Application does?These are documents 11.2 saidhttp://docs.Oracl

  • List of files actively used hard

    HelloMy environment has several clones that have not been deleted, and because of our naming conventions is not always obvious which machine is actively used, I don't want to try to recover a virtual machine and eventually recover an old clone by mis