I read that javascript may have problems in converting the IDs of tweets into the numbers I am using twitter4J in java Long will it fit in it ??
Yes.
Also, the reason that ids are provided as both numbers and as strings in the Tweet and User objects is that the string representation should remain accurate in Javascript.
You can read more about this in the documentation.