How to declare variables in Java?

Love and Share

Answer:  It contains  3 types of variable :-
1 Local variable (applicable Access Modifier is Final only (In terms of main method))
2 Instance variable (we can any no. objects)
3 Class/Static variable (only one copy is made per class)

Love and Share

Leave a Reply

Your email address will not be published. Required fields are marked *