Long Flashcards
Compiles L prints [J@nnnnnnnn and L[0] prints 65.
long[] L = {'\u0041'};
Compilation error: incompatible types: Long cannot be converted to Long[].
Long[] L = new Long("65");
Compilation error: no suitable constructor found for Long(double).
Long L = new Long(65.0);
Compilation error: incompatible types: possible lossy conversion from double to long.
long L = 65.0;
Compiles L prints [J@nnnnnnnn and L[0] prints 65.
long[] L = {65L};
Compilation error: incompatible types: char cannot be converted to Long[].
Long[] L = '\u0041';
Compiles L prints 65.
long L = 'A';
Compilation error: incompatible types: String cannot be converted to Long.
Long[] L = {"65"};
Compilation error: incompatible types: char cannot be converted to long[].
long[] L = '\u0041';
Compiles L prints null and L[0] prints NullPointerException.
Long[] L = null;
Compiles L prints null and L[0] prints NullPointerException.
long[] L = null;
Compilation error: incompatible types: String cannot be converted to long.
long[] L = {"65"};
Compilation error: incompatible types: possible lossy conversion from double to long.
long[] L = {65.0};
Compilation error: no suitable constructor found for Long(double).
Long[] L = new Long(65.0);
Compilation error: incompatible types: Long cannot be converted to Long[].
Long[] L = new Long(null);
Compilation error: incompatible types: String cannot be converted to long[].
long[] L = "true";
Compiles L prints [J@nnnnnnnn and L[0] prints 65.
long[] L = {0B01000001};
Compilation error: incompatible types: String cannot be converted to Long[].
Long[] L = "true";
Compilation error: cannot find symbol.
long[] L = {fAlse};
Compilation error: no suitable constructor found for Long(boolean).
Long L = new Long(true);
Compilation error: incompatible types: String cannot be converted to Long.
Long[] L = {"true"};
Compilation error: cannot find symbol.
Long[] L = fAlse;
Compiles L prints [J@nnnnnnnn and L[0] prints 120.
long[] L = {'\170'};
Compilation error: incompatible types: char cannot be converted to Long[].
Long[] L = '\170';
Compilation error: incompatible types: String cannot be converted to long.
long[] L = {"true"};
Compilation error: cannot find symbol.
Long[] L = new Long(fAlse);
Compilation error: incompatible types: Long cannot be converted to Long[].
Long[] L = new Long("true");
Compiles L prints null.
Long L = null;
Compiles L prints 65.
long L = 65;
Compilation error: incompatible types: char cannot be converted to long[].
long[] L = '\170';
Compilation error: cannot find symbol.
Long[] L = {fAlse};
Compiles L prints {Ljava.lang.Long;@nnnnnnnn and L[0] prints 65.
Long[] L = {65L};
Compilation error: incompatible types: Long cannot be converted to Long[].
Long[] L = new Long('\u0041');
Compilation error: incompatible types: char cannot be converted to Long.
Long[] L = {'A'};
Compiles BUT L prints NumberFormatException.
Long L = new Long(null);
Compilation error: incompatible types: int cannot be converted to Long.
Long L = 0B01000001;
Compilation error: incompatible types: Long cannot be converted to Long[].
Long[] L = new Long('\170');
Compilation error: incompatible types: int cannot be converted to long[].
long[] L = 0B01000001;
Compiles L prints [J@nnnnnnnn and L[0] prints 65.
long[] L = {65};
Compiles L prints 65.
Long L = new Long(65);
Compilation error: incompatible types: char cannot be converted to Long.
Long[] L = {'\u0041'};
Compilation error: cannot find symbol.
Long L = new Long(fAlse);
Compilation error: incompatible types: char cannot be converted to Long.
Long L = '\u0041';
Compilation error: incompatible types: <null> cannot be converted to long.
long[] L = {null};
Compiles L prints 65.
Long L = new Long(0B01000001);
Compiles L prints 65.
long L = 0B01000001;
Compiles L prints 120.
Long L = new Long('\170');
Compiles L prints [J@nnnnnnnn and L[0] prints 65.
long[] L = {'A'};
Compilation error: incompatible types: Long cannot be converted to Long[].
Long[] L = new Long(65);
Compiles BUT L prints NumberFormatException.
Long L = new Long("true");
Compiles L prints 65.
Long L = new Long(65L);
Compilation error: incompatible types: Long cannot be converted to Long[].
Long[] L = new Long('A');
Compilation error: cannot find symbol.
long[] L = fAlse;
Compiles L prints 65.
Long L = new Long("65");
Compilation error: incompatible types: Long cannot be converted to Long[].
Long[] L = new Long(0B01000001);
Compiles L prints 65.
long L = 65L;
Compilation error: incompatible types: char cannot be converted to Long.
Long[] L = {'\170'};
Compiles L prints [Ljava.lang.Long;@nnnnnnnn and L[0] prints null.
Long[] L = {null};
Compiles L prints 65.
Long L = new Long('\u0041');
Compiles L prints 65.
Long L = new Long('A');
Compilation error: no suitable constructor found for Long(boolean).
Long[] L = new Long(true);
Compilation error: cannot find symbol.
Long L = fAlse;
Compilation error: cannot find symbol.
long L = fAlse;
Compilation error: incompatible types: boolean cannot be converted to long.
long[] L = {true};
Compilation error: incompatible types: double cannot be converted to Long.
Long[] L = {65.0};
Compiles L prints 65.
Long L = 65L;
Compilation error: incompatible types: int cannot be converted to Long.
Long[] L = {0B01000001};
Compiles L prints 120.
long L = '\170';
Compiles L prints 65.
long L = '\u0041';
Compilation error: incompatible types: int cannot be converted to Long[].
Long[] L = 0B01000001;