Friday, June 12, 2015

HUNGARIAN NOTATION:

9:58 AM

HUNGARIAN NOTATION:

Hungarian Notation is the naming convention followed by SUN (Stanford University
Network) micro system to develop their predefined classes, interfaces, methods and data
members.

Hungarian rule for CLASS or INTERFACE:

If a class object interface contains more than one word then we must write all the first
letters must be capital.

For example:

System, NumberFormatException, ArrayIndexOutOfBoundException
Hungarian rule for METHOD:
If a method name contains more than one word then first word letter is small and rest of
the words first letters must be capital.

For example:

println (), actionPerformed (), adjustmentValueChanged ()
Hungarian rule for DATA MEMBERS:
All the data members are the predefined classes and interfaces must be represented used as
capital letters.

For example:

PI, MAX_VALUE, and MIN_VALUE
All the data members in the predefined classes and interfaces are belongs to public static
final XXX data members. XXX represents data type, variable name and variable value. Every final
data member must belong to static data member but reverse may or may not be applicable.

Written by

We are Creative Blogger Theme Wavers which provides user friendly, effective and easy to use themes. Each support has free and providing HD support screen casting.

1 comments:

 

© 2013 Java Tutorials. All rights resevered. Designed by Templateism

Back To Top