Rabu, 01 Februari 2017

what is the scope of the keyword static in the class instance (Java programming)

In Java program, static keyword can be used to create the following: Class variable Class method Static block   Class Variable: The static keyword is used to create one of the three type of variable called as class variable. A class variables is a variables declared inside a class and outside all the methods and is marked as static. Syntax for declaring a classes variables or a static variables is shown below: static data-type variable-name; Example for declaring a classes variable is shown below: static int id; What is special about a class variables? As you already know, an instance

The post what is the scope of the keyword static in the class instance (Java programming) appeared first on Coding Security.


what is the scope of the keyword static in the class instance (Java programming)
read more

Tidak ada komentar:

Posting Komentar