FifthSemester_JAVA_Quesiton Answer
1. Major Features of Java Simple – Easy syntax, no pointers, automatic memory management. Object Oriented – Uses class and object, supports encapsulation, inheritance, polymorphism, abstraction. Platform Independent – “Write Once, Run Anywhere” (Bytecode runs on JVM). Secure – No pointer manipulation, bytecode verification, security manager. Robust – Strong memory management, exception handling. Multithreaded – Supports multiple threads execution. Distributed – Supports RMI, networking API. Portable – Same size of primitive types on all systems. High Performance – Uses JIT compiler. 2. Multithreading Definition: Multithreading is the process of executing multiple threads simultaneously within a single program. Example: class A extends Thread{ public void run(){System.out.println("Thread running");} public static void main(String[] args){ A t=new A(); t.start(); } } ...