Answers for "final keyword in javaoops quuiz"

0

final keyword in javaoops quuiz

public class Test
{
    // Blank final variable
    final int SPEED;
    // Instance Initialization Block
    {
        SPEED = 5;
    }
    public static void main(String args[])
    {
        Test t=new Test();
        System.out.println("Travelling Speed is :"+t.SPEED);
    }
}
Posted by: Guest on October-06-2021

Code answers related to "Java"

Java Answers by Framework

Browse Popular Code Answers by Language