Search | View Active Threads | View New Posts
Current Time: 03:52 PM

 

+ Reply to Thread
Results 1 to 6 of 6
  1. #1
    Join Date
    Apr 2014
    Location
    Banagalore
    Posts
    769

    Static Variable in Java

    Class variables also known as static variables are declared with the static keyword in a class, but outside a method, constructor or a block.

  2. #2
    Join Date
    May 2018
    Posts
    131
    Whenever we declare variable as static, then at the class level a single variable is created which is shared with the objects. Any change in that static variable reflect to the other objects operations. If we won't initialize a static variable, then by default JVM will provide a default value for static variable.

    Best Psychic Astrologer in Toronto | Psychic Reader in Canada | Black Magic Removal in Canada | Psychic Reading in Toronto | Psychic Reading Services in Canada | Psychic Reader in Toronto | Top Indian Astrologer in Canada | Astrologer in Canada | Top Astrologer in Toronto

  3. #3
    Join Date
    Jul 2019
    Posts
    7
    A static variable is common to all the instances (or objects) of the class because it is a class level variable. In other words you can say that only a single copy of static variable is created and shared among all the instances of the class.

  4. #4
    Join Date
    Sep 2018
    Posts
    184
    static variables are used when only one copy of the variable is required. so if you declare variable inside the method there is no use of such variable it's become local to function only.


    Famous Psychic Reader in Canada | Indian Astrologer in Toronto | Evil Spirit Removal in Toronto

  5. #5

    MVNO Consulting

    Static variable in Java is variable which belongs to the class and initialized only once at the start of the execution. It is a variable which belongs to the class and not to object(instance) Static variables are initialized only once, at the start of the execution.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  

Sponsors

Above.com Domain Registrar, Marketplace and Revenue Optimizer
Trellian Direct Search Network
Domain Escrow Services

Industry Events

11-14 August 2019
Affiliate Summit East
New York, NY

4-6 March 2019
LeadsCon
Las Vegas

15-18 September 2018
MERGE 2018
Orlando, FL

Poll

How do you invest in domains?
to see the Poll results!
DomainState.com
Domain Tools | Domain Directory | Registrar Stats | Domain Glossary | Industry Events | FAQ | Members | Terms | RSS | Link To Us | Advertise | Contact Us
Other Related Trellian Services:
Above.com Registrar  |  Above.com Marketplace  |  Above.com Domain Manager  |  Free Search Toolbar  |  Free Webpage Builder  |  Keyword Research
Direct Search Navigation  |  Search Engine Submission and SEO Tools
Copyright © 2002 DomainState.com a Trellian Company 2014 Bronze Sponsor - Internet Commerce Association