Programming MCQS - QUESTION DETAILS

What is the role of the 'static' keyword in Java?
A. Create a static method
B. Create a static variable
C. Define a constant
D. Create a static class

'static' is used to create static variables in Java.

Similar Questions

In C, how do you declare a constant?






What is the purpose of the 'sizeof' operator in C?






What is the output of printf("%c", 65);?






Which function is used to read a character from the standard input in C?






How do you declare a constant pointer in C?






How is a preprocessor directive indicated in C?






What does the 'printf' function do in C?






How is a single-line comment written in C?






What is the purpose of the 'rand' function in C?






How do you define a function in C?