20-12-24 ---------- Q)Why is the return type of main method void? =>Return type of main method of a Java application is "void". It means Java application doesn't return anything to the JVM. Infact, should not return anything to the JVM. =>JVM is meant for providing infrastructural services(as a PLATFORM) to the Java application but not meant for receiving any value from the Java application. Q)What is the main purpose of a Java application? =>data processing Q)Can data be processed in an application without storing in Computer's memory? =>No. =>Data should be stored in Computer's primary memory/main memory/ RAM(Random Access Memory). Q)How to store data in RAM in a Java application? =>by using variables Q)What is a variable? =>Named memory location is nothing but a variable. =>Programmers treat a variable as a container to store data in RAM. =>data stored in the variable can vary and hence the name. Note:- In a Java application, variable should be created (should be declared). Q)What is meant by declaring a variable? =>Associating/binding a memory location with a data type is nothing but declaring a variable. Q)What is the syntax to declare a variable in a Java application? ; For eg. int accno; float balance; Q)What is assignment? =>Assigning a value to a variable i.e. storing a data item into the variable is nothing but assignment. For eg. accno=10001; balance=50000; Q)What is meant by initializing a variable? =>Assigning a value to a variable for the first time is nothing but initializing the variable. For eg. int a; //variable declaration a=30; //variable initialization b=40; // assignment