Constants in Java

  • Constants are named locations in memory that are used to hold a value that cannot be modified by the program.
  • Constants remain unchanged during the execution of a program.
  • final keyword is used to declare constant in Java.

    Syntax :

    final data-type identifier = value;


    final float PI = 3.14F;

  • It a coding convention to use uppercase for constants.

Next topic is Java-Escape-Characters


Training For College Campus

We offers college campus training for all streams like CS, IT, ECE, Mechanical, Civil etc. on different technologies like
C, C++, Data Structure, Core Java, Advance Java, Struts Framework, Hibernate, Python, Android, Big-Data, Ebedded & Robotics etc.

Please mail your requirement at

Projects For Students

Students can contact us for their projects on different technologies Core Java, Advance Java, Android etc.

Students can mail requirement at

(8AM to 10PM):

+91-8527238801 , +91-9451396824

© 2017,, All rights reserved