J2SE Question:

What is static?

Tweet Share WhatsApp

Answer:

A Java keyword used to define a variable as a class variable. Classes maintain one copy of class variables regardless of how many instances exist of that class. static can also be used to define a method as a class method. Class methods are invoked by the class instead of a specific instance, and can only operate on class variables.

Download J2SE PDF Read All 214 J2SE Questions
Previous QuestionNext Question
What is subarray?What is single precision?