I am writing a code in which I am trying to assign a value in long variable.
But java compiler is showing error that too large integer number.
I am trying to store 600851475143
in long
type still.
class Sum {
static public void main(String args[]){
long num=600851475143;
}
}