English

Define the term Constants.

Advertisements

Question

Define the term Constants.

Definition
Advertisements

Solution

A Constant is a fixed value in a Java program that cannot be changed during program execution. In Java, constants are declared using the final keyword, which prevents their values from being modified once they are assigned.

shaalaa.com
  Is there an error in this question or solution?
Chapter 6: Variables and Expressions - EXERCISE [Page 131]

APPEARS IN

Dheeraj Mehrotra Computer Science [English] Class 12
Chapter 6 Variables and Expressions
EXERCISE | Q 1. (ii) | Page 131
Advertisements
Share
Notifications

Englishहिंदीमराठी


      Forgot password?
Use app×