Use of static keyword

  • Vaskaran Sarcar
Chapter

Abstract

Look at the output carefully. Look at the order of the output. You can see the statements in the static block printed on the top of output. Even before the execution of the static block, the static variables were initialized. Later static block changed the values (which are reflected clearly when we call the static method).

Keywords

Static Method Static Member Static Class Static Block Child Class 
These keywords were added by machine and not by the authors. This process is experimental and the keywords may be updated as the learning algorithm improves.

Copyright information

© Vaskaran Sarcar 2016

Authors and Affiliations

  • Vaskaran Sarcar
    • 1
  1. 1.BangaloreIndia

Personalised recommendations