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

1 Answer

0 votes

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

Related questions

0 votes
asked Jun 9, 2020 in C Plus Plus by Robindeniel
+1 vote
asked Aug 7, 2020 in QuickTest Professional (QTP) by Hodge
+1 vote
asked Feb 8, 2020 in JAVA by rahuljain1