Skip to content

Tag: java

Get jar manifest attributes from Java agent

I am running my own java agent on a jar containing some sample code. Input to the command line: I’m currently providing the sample-code.jar’s main class (as stated in its manifest) as an arg to the agent, although, I’m trying to find a way to access the sample-code.jar’s manifest&#8217…

Why It is giving me Integer Overflow

Its giving me Integer Overflow both in java and C but when I tried it in Python it gave me right answer . Any reasons ? Answer There are two reasons: Most computer languages use fixed-size integers. Today, that’s often 32 bits. The correct result of your calculation, 2500000025, is a 32-bit number, mean…