in JAVA by
Q:
Can a variable be local and static at the same time in Java?

1 Answer

0 votes
by

No a variable can’t be static as well as local at the same time. Defining a local variable as static gives compilation error.

Click here to read more about JAVA
Click here to read more about Insurance

Related questions

0 votes
asked Nov 1, 2019 in Other by MBarbieri
0 votes
asked Feb 16, 2020 in JIRA by SakshiSharma
0 votes
asked Jan 14, 2020 in QuickTest Professional (QTP) by GeorgeBell
0 votes
asked Jan 14, 2020 in QuickTest Professional (QTP) by GeorgeBell
0 votes
asked Jan 27, 2020 in JAVA by rahuljain1
...