The following code snippet gave me compiler error at Line 1.
public abstract class xyz { float Gamma = 20.0; //Line 1 public class Alpha { v
float density = 20.0f;
If you try to assign a decimal number you must place an "f" at the end, otherwise Java will assume you are trying to assign a double .A double would more precisely cover more numbers that you could type in.