Skip to main content

Static keyword

Static keyword

Static members are those that belong to a class as a whole and not to a particular instance (object). A static member is initialized when the class is loaded. Similarly ,A  class can have static methods,static  variables and static methods are collectively called as "static members"
Static members in a class can be accessed either by using the class name or by using the object reference,but instance members can only be accessed via object references.
The static can be:
          variable (also known as class variable)
          method (also known as class method)
          block
          nested class
For detailed description and examples ,i am  here sharing power point presentation with you , pls download it from given link:

Comments

Popular posts from this blog

How to Grant Privilages to an account in MYSQL

MYSQL 'GRANT' statement allows you to grant access privileges to database account. To achieve same ,syntax  is as follow: Syntax:- GRANT privileges [Column_List] ON  [Object_Type] Privilege_level To account [IDENTIFIED BY 'password'] [ REQUIRE encryption ] WITH with_option ; Detailed explanation: Privileges:- It indicates that you have assign privileges to account. column_List : - (1) Its  optional.                          (2) Column(s) to which privileges apply. Privileges_level :- Level at which privileges apply. You can use global  privileges,database privileges,table specific privileges, column privileges etc. Account :- Which  account is being granted privileges. Password: - Specifies password.It replace old password. Required:- Clause specify whether the account has to connect to database server over secure connec...

EXAM PATTERN for the upcoming CCC exam?

      EXAM PATTERN  for the upcoming CCC exam?     • The examination conducted will be in objective form. • There will be 100 questions and time given will be 90minutes so the candidates have 90 minutes to solve multiple choice questions. • The result will not come in the form of marks it will in grades and certificate will be given to the candidates scoring minimum 50%. • This exam is done every month so no qualification is needed. • Candidates will have to go through the online tests this will actually help the housewives and the person who wants some basic knowledge.        

How to view MYSQL Users with their Privileges

  To Find list of users and permission granted them in MYSQL run following command :          select user,host from MySQL.user; Here (i) host component tells on which host they are connecting from.          (ii)%  is a wild card character interprets as 'any ' host. To find the privilege(s) granted to a particular MySQL account: --> show grants for 'super'@'%';  Here super is user name and host name user concatenated by @ .