Ask a Question
Ask Question Login
Corporate Training
  1. Community
  2. Java
  3. Question
Java

How can we define global variables in java?

Asked by Marie Broadber Jul 26, 2021 1.1K views 1 answer
Share

About this question

I want to call the variables from anywhere, for which I need to declare them as global. But don’t know how to declare global variables in java ?

Your answer

1 Answer

More Java discussions

Learn & Explore

Free tutorials and interview questions from industry experts — learn the skill, then get ready to prove it.

Latest Java Blogs

Guides, tips and career advice on Java from JanBask experts.