Question 2Įxplain the significance of the following Java library packages. Java.lang is imported by default in Java. Name a Java package which is imported by default. println( "120 ") Output The factorial of 5 is120
Predict the output of the following snippets Question 1 It should not be confused with java.math package which contains BigDecimal, BigInteger and MathContext classes. The official documentation is provided here. Java.lang package is used for mathematical functions in Java.Ĭlarification: Math class inside java.lang package contains mathematical functions. Windows based Java platform is known as BlueJ.
#Convert java bluej program to windows program code
JVM is used to convert Byte Code into machine code. Question 2Ĭompiler converts source code to byte code.