yes there is a difference between structure and class that is .......struct is basically used to store/declare the variables of different types of data.but in java class is a main part where which contains main() function from there program gets start executing