Java Mock Question
Java Mock Question
TOKENS
1.What is Variable?
2.Based on the type how many types of variables are there? And list the types
3.What is Primitive Variable? And What is the syntax to create Primitive Variable?
4.What is Non Primitive Variable (Reference variable)? And What is the syntax to
create
Non Primitive Variable?
5.What is Datatype? How many types are there?
6.What is primitive data type? How many types are there? And list all the primitive
data types
7.What is non-primitive data type? How many types are there? And list some non
primitive
data types
8.In java Whether the class name is a non-primitive datatype?
9.What is Local Area? In local area which variables can we able to create ?
10.What is Global Area? In Global area which variables can we able to create ?
11.Based on the scope how many types of variables are there? And list the types
12.What is local variable? And explain about characteristics of local variable.
OPERATORS
1.What is control flow statements? And how many types are there?
2.What is decision making statements? And how many types are there?
3.Explain about if statement and give any one example
4.Explain about if else statement and give any one example ?
5.Explain about if else if statement and give any one example ?
6.Explain about switch statement and give any one example
7. What is break? Whether break statement is optional or mandatory?
8.Can we able to write duplicate cases in switch statement?
9.What is looping statements? And how many types are there?
10.Explain about while loop and Give one example for while loop
11. Explain about do while loop and Give one example for do while loop
12. What is the difference between while loop and do while loop?
13.Explain working flow for loop
METHODS