Answers for "how to create string type variable in java"

3

type variable java

public class A  
{  
    static int m=100;//static variable  
    void method()  
    {    
        int n=90;//local variable    
    }  
    public static void main(String args[])  
    {  
        int data=50;//instance variable    
    }  
}//end of class
Posted by: Guest on July-16-2021
0

string variable java

String greeting = "Hello";
Posted by: Guest on October-01-2021

Code answers related to "how to create string type variable in java"

Code answers related to "Java"

Java Answers by Framework

Browse Popular Code Answers by Language