Posts

Showing posts from August, 2023

Core Java

Language fundamentals  Agenda : 1. identifiers 2. Reserved word 3.Data Types 4. Literals  5. Array 6. Types of Variables 7. var-arg method 8. main method 9. command line arguments 10. java coding standard ====================================================== 1. Identifiers : a name in java program is called identifier which can be used for identification purpose.it can be method name, class name, variable name or label name. class Test  { public static void main(String args[]) { int x=10; } } Q1. how many identifiers? Answer : 5 Rules for defining java identifiers 1. the only allowed characters are - A to Z , a to z, 0 to 9, $ , _ total_number ? total# ? 2. identifiers cant start with digit total123 ? 123total ? 3. java identifiers are case sensitive (java language is case sensitive) int number =10 int Number =20 int NUMBER =30 4.there is no length limit for java identifier but it is not recommended to take too lengthy identifier 5 we cant use reserve words as identifier...