Java Practicals Viva Questions

Java Practicals Viva Questions
1)What is significance of import* in your program
2)difference between if and switch
3)difference between for and while loop
4)difference between do while and while loop
5)types of comments
6)why is S capital in System.out.println
7)what are exceptions
8)types of exceptions
9)define data type
10)what is constant
11)what is meant by static
12)what are objects
13)what is a class
14)why do we have main() function
15)can two functions have same name
16)parts of for loop
17)examiner may ask you to tell what is control variable in your loop
18)difference between variable and constant
19)what are exceptions
20)what is use of throw