Java VIVA Preparation
Java VIVA Preparation
1. Features of Java
● Dynamic & Portable: Adapts to changing environments and runs across platforms.
● Bytecode: Intermediate code generated after compiling Java source code (.java →
.class).
● JVM (Java Virtual Machine): Executes bytecode on any platform; handles memory
management, garbage collection, etc.
3. JDK
● Java Development Kit: Contains compiler (javac), JVM, libraries, and tools for
Java development.
4. Data Types
● Primitive Types: byte, short, int, long, float, double, char, boolean.
5. Operators
6. Control Statements
● Loops:
7. Arrays
8. Strings
● Passed via main(String[] args); used to provide input at runtime through the
console.
● Passing & Returning Object: Objects can be arguments and return types of
methods.
12. Keywords
● Cannot be instantiated.
2. Keywords in Inheritance
3. Interfaces
5. Object Class
7. System.out.println
● System: Class; out: PrintStream object; println(): Method to print with a new
line.
8. Packages
9. Exception Handling
2. IO Streams
● Common Classes:
3. Collection Classes
2. Generics
● Wildcards:
3. Applets
● Lifecycle Methods:
○ init(): Initialization
○ stop(): Suspends