answersLogoWhite

0

Can keyword be used as variables?

Updated: 11/4/2022
User Avatar

Wiki User

13y ago

Best Answer

No, any keyword could be used as a identifier (a method, class or variable name). These keywords have a special meaning in the language and the compiler can not identify if they are used as a variable name or as a keyword,

User Avatar

Wiki User

13y ago
This answer is:
User Avatar
More answers
User Avatar

Wiki User

13y ago

No, keywords cannot be used as identifiers.

This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: Can keyword be used as variables?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

Which keyword is used with variables to keep them permanently within the functions?

static


What is this keywords?

'This' is a keyword that is it is previously defined in the library. It is Used with this pointer to point to another variables memory address.


What are the usages of keyword final in java?

It's a built-in keyword that defines an entity that cannot be later modified. It can be used in different aspects within your code (like setting a 'final' class, method (function), or variable).


Explain different types of variables in shell?

Environment Variables: Sometimes called special shell variables, keyword variables, predefined shell variables, or standard shell variables, they are used to tailor the operating environment to suit your needs. Examples include PATH, TERM, HOME, and MAIL.User-defined Variables: These are variables that you create yourself.Positional Parameters: These are used by the shell to store the values of command-line arguments


Does adding the static keyword to the declaration of these variables in your program change their size?

No. The static keyword only specifies the way a method is declared, used and handled by the JVM and the other classes and does not modify the size it occupies in the memory.


Why use static?

Static is a keyword which is used to call the methods or variables without creation of that class object. It will directly calls the respective method and varialbles.


What are similarity between puts and print f?

The 'print f' keyword in c is used to print every thing on the application window,everything in the sense that it is used to print the values of variables,print independent characters and symbols. The Puts keyword is used to print character strings on the application window.


What do you mean by this keyword in java?

"this" is a Java keyword that references the current object. Any part of the object(instance variables, methods, constructors) can be accessed by calling this.[member].


Are static variable created by giving keyword static in java?

yes bcoz static variables


Is in is used as a keyword in C language?

Neither "in" nor "is" is a keyword in C.


What is token in C programming?

They're things that keep the variables in line with the void main and your functions


What is a keyword marketing tool used for?

A keyword marketing tool is used to increase organic traffic by focusing on the most promising keywords. The more a keyword is used by searchers and websites the more attraction it receives.