Fanatah Java Academy
And we are the experts in java training that can help you become a professional developer in no time. Fanatah's Java Academy is a java training Centre located in Harare that offers java computer programming- OCPJP SE(Oracle Certified Professional Java Programmer-Standard Edition ). This is an international certification offered by Oracle University.. Java Developers are amongst the most paid softw
08/07/2020
*Today's lesson*
JAVA IDENTIFIERS
BY FANATAH | UNDER JAVA BASICS.
NB* This is a certification topic*
All Java components require names. Names used for classes, variables, and methods are
called identifiers.
E.g.
class Hallo{ }
class is a keyword.
Hallo is an identifier.
int x = 12;
int is a keyword.
x is an identifier.
In Java, there are several points to remember about identifiers.
They are as follows:
1. All identifiers should begin with a letter (A to Z or a to z), currency character ($)
or an underscore (_).
2. After the first character, identifiers can have any combination of characters.
1.A key word cannot be used as an identifier.
2.Most importantly, identifiers are case sensitive.
3.Examples of legal identifiers: age, $salary, _value, __1_value.
4.Examples of illegal identifiers: 123abc, -salary.
Java Modifiers:
Like other languages, it is possible to modify classes, methods, to provide or deny access to a thing., by using modifiers.
There are two categories of modifiers:
1. Access Modifiers: default, public , protected, private
2. Non-access Modifiers: final, abstract, strictfp.
NB* can someone tell us what strictfp means and where it can be applied..??
Java Variables:
Following are the types of variables in Java:
1. Local Variables
2. Class Variables (Static Variables)
3.Instance Variables (Non-static Variables)
Click here to claim your Sponsored Listing.
Category
Contact the business
Telephone
Address
102 Twentydales, Hatfield
Harare
Opening Hours
| Monday | 09:00 - 17:00 |
| Tuesday | 09:00 - 17:00 |
| Wednesday | 09:00 - 17:00 |
| Thursday | 09:00 - 17:00 |
| Friday | 09:00 - 17:00 |
| Saturday | 09:00 - 13:00 |