Java variable types


  Translation results:

Java is divided into three systems:

JavaSE (J2SE) (Java2 Platform Standard Edition, java platform standard edition)

JavaEE (J2EE) (Java 2 Platform, Enterprise Edition) , java platform Enterprise Edition)

JavaME (J2ME) (Java 2 Platform Micro Edition, java platform micro edition).

Java variable typessyntax

In the Java language, all variables must be declared before use.

Java variable typesexample

public class Variable{
static int allClicks=0; // class variable
​
String str="hello world"; // Instance variables
​
Public void method(){
​
Int i = 0; // Local variables
​
}}

Popular Recommendations

Home

Videos

Q&A