Viva Questions
Viva Questions
1. What is JAVA
Java is a multiplatform, object-oriented programming language
2. What is JVM
Java Virtual Machine
3. What is the keywords used for exception handling.
Try, Catch,
4. Define arrays
Arrays are used to store multiple values in a single variable of a same data type
5. What is control statements
A control statement determines whether the next set of tasks have to be executed or not
6. What is libraries
A library is a collection of class definitions and methods that define specific operations
7. What is relational operator
Relational operators are <,<=,>,>=,==,!=
8. How many parts will be there in a for loop
Three. Initialization, Condition, Incrementor / Decrementor
9. Difference between While and Do While loop
While – Entry Control
Do While – Exit Control
10. What is data member
Data members, also known as fields or instance variables, represent the state of an object
11. How to declare variable in Java
Data_type variable name
12. What is constant in Java
Java constants are variables whose value remains unchanged once they are assigned.
13. What is Class in Java
A class in Java is a set of objects which shares common characteristics/ behaviour and common properties/
attributes
14. OOP stand for
Object Oriented Programming
15. What is access modifiers
Access modifiers are keywords which define the accessibility of a class and its member