Program on usage of Final keyword in java

1,229 views

Published on

Program on usage of final keyword

Published in: Education
  • Be the first to comment

  • Be the first to like this

Program on usage of Final keyword in java

  1. 1. //Ques. 11 Program on usage of final keyword. class Bike { finalintspeedlimit; Bike() { speedlimit=70; System.out.println("n Maximum Speed of Bike is = " +speedlimit); } public static void main(String args[]) { new Bike(); } }
  2. 2. OUTPUT:-

×