Posts

Showing posts from 2025

Fundamentals of Programming(JAVA)

Fundamentals of Java Programming   Q) Distinguish between variables and keywords. Variables Definition: Variables are named storage locations used to hold data (like numbers, text, etc.) that your program can manipulate. Created by the programmer. Can store different types of data (int, float, String, etc.). The name must follow Java's naming rules (e.g., can't start with a number, no special characters except _ and $, can't be a keyword). The value of a variable can change during program execution. Ex: int var=25; Char ch; Keywords Definition: Keywords are reserved words in Java that have a specific meaning to the compiler and cannot be used as identifiers (like variable names or class names). Predefined and fixed in the language. Used to define the structure and syntax of Java programs. Cannot be redefined or used for any other purpose. Ex: static, class, if, public etc Q) Distinguish between Logical and Relational operators  Relational Operators Definition: Relation...