What are the types of variables in Java ? Ans. The types of variables in Java are- Instance variable Static variable Local variable class EEN{ int age=20;//instance variable static int a=30;//static variable void show(){ int b=40;//local variable } } Download as PDF Related posts: Can Java have same name variable JAVA and its Support Systems JAVA environment JAVA program structure Tokens Java statements Java virtual machine C++ Versus JAVA Constants and Variables in Java Data types JAVA Defining a class Constructor in JAVA Array in Java Applet Applets Vs Applications Writing applets Applets life cycle Creating an Executable Applet Graphics in Applet Applet image display Applet digital clock Applet mouse event handling JDBC Execute an SQL Statement Process the result CLOSE THE DATABASE CONNECTION File handling Define a class to declare an integer array of size n and accept the elements into the array. Define a class to declare an array of size 20 of the double datatype, accept the elements into the array and perform the following: Calculate and print the sum of all the elements. Java program for String, to uppercase, to equal, length of string Write a Java program for Buble sort. Write a Java program String to uppercase and count words startig with ‘A’ How to set path in Java Understanding public static void main (String args[] ){ } in Java Difference between static and non static methods in Java