About 153,000 results
Open links in new tab
  1. Java Variables - GeeksforGeeks

    Nov 11, 2025 · In Java, variables are containers used to store data in memory. Variables define how data is stored, accessed, and manipulated. A variable in Java has three components, Data Type: …

  2. Java Variables - W3Schools

    Java Variables Variables are containers for storing data values. In Java, there are different types of variables, for example: String - stores text, such as "Hello". String values are surrounded by double …

  3. List variables in Java - Stack Overflow

    In Java, there is no easy way to get a variable based on its name. What you can do, however, is store all your variables in a HashMap. This will accomplish what you want.

  4. Java - Variable Types - Online Tutorials Library

    Here data type is one of Java's data types and variable is the name of the variable. To declare more than one variable of the specified type, you can use a comma-separated list. Example of Valid …

  5. Java Variables: A Complete Guide (feat. var Type Inference)

    May 17, 2025 · This article provides a complete overview of Java variables, covering everything from basic concepts to modern features like local variable type inference var. It explores variable types, …

  6. Java Variables

    The list of basic Java variables is essential to know if you're going to program anything in Java. Java's basic types are listed here as well as how to use them.

  7. Variables (The Java™ Tutorials > Learning the Java Language ...

    The Java programming language defines the following kinds of variables: Instance Variables (Non-Static Fields) Technically speaking, objects store their individual states in "non-static fields", that is, fields …

  8. Variables and Types - Learn Java - Free Interactive Java Tutorial

    Although Java is object oriented, not all types are objects. It is built on top of basic variable types called primitives. Here is a list of all primitives in Java: byte (number, 1 byte) short (number, 2 bytes) int …