Java Language Provide Four Different Types of Cases to write the name. When you will write code then you should focus on the naming convention, it provides the ways to provide the name of Variable, Constant, package, Methods, Class, and Interface. 1 lower case:- for a keyword, for variable, single word method, package-name example class, static, void, main these all are a keyword in java, it's have been defined in lower case. 2 Proper Case or initial or Capitalize:- Classname, Interfacename 3 Camel Case:- the first word all char in lower case and the second word first char will be in caps and the same pattern will apply to all words. The method nam e which contains more than one word will be in Camel case in java. toString() indexOf() lastIndexOf() 4 Upper case:- Constant in Java should be declared in Upper Case. ASSIGNMENT OF JAVA Program:- 1 WAP to create a Salary Calculator of an employee using basic, ta, da, comm, pf, number of leave. calculate net salary and g...
Hi, I'm Shiva Gautam. With over 15 years of diverse experience in various IT domains, I am now an entrepreneur focusing on both training and software development. My expertise spans across multiple technologies, and I've authored numerous articles on subjects including Java, Python, REACT, NODE, ANGULAR, Cloud, software testing, Django framework, C#, Flutter, Salesforce, Ruby on Rails, .NET, and more. For additional information, please visit shivaconceptsolution.com and kangaroosoftware.net.