Which of the given options best describes the truthfulness of the following statements?
i) When a Java program is compiled, it generates Byte code.
ii) SOAP and RESTFUL are java web services.
iii) PATH Environment variable identifies the location of Java compiler.
iv) The || logical operator returns true if both statements are true.
DSSSB TGT - 2023,
Answer: A
Statements i, ii and iii are true and iv is false. Compiling a Java program produces byte code, SOAP and RESTful are accepted in the key as Java web services, and the PATH environment variable gives the location of the Java compiler so that it can be run from any directory. The || operator is the logical OR, which returns true when at least one of the operands is true, and it is && that needs both to be true. So the fourth statement is false.
Please log in or register to report this question.