Skip to content

Tag: java

How the output of the below code becomes 1 need good explanation

The result of the above program is 1 but I am not sure how its giving the result of 1. someone pls explain this to me.. it was asked in one of the interview I had for automation Answer So at first break this statement and try to understand what’s going on So you must be aware with operator precedence

.jar File can’t find image file path

I’m creating a simple program that I now want to export as a executable jar file. Everything works fine except the jar file can’t find the image. For creating the runnable JAR file I used the second option in Eclipse 2021-12 (Package required libraries into generated JAR). This seems to work well,…