Computer Science, asked by mayanksaha9125, 5 months ago

Which of the following classes are available in the java.lang package?

i) Stack ii) String iii) Math iv) Random

Select one:
a. ii and iv only
b. i and iv only
c. ii and iii only
d. i and ii only

Answers

Answered by ayushisagar1000
2

Answer:

String and math classes only available in the java

Answered by aditijaink283
1

Answer:

c. ii and iii only

Explanation:

You can access characteristics and techniques for mathematical constants and functions using the math object. Math is not a function Object() { [native code] }, in contrast to other global objects. Math can be used as an object without having to be created, and all of its attributes and methods are static and available for use. Consequently, you refer to the value of pi as Math.PI. and you use x as the method's argument when calling the sine function with Math.sin(x). The Javascript string basic data type is wrapped in the String object, which provides a number of assistance methods for working with strings of characters. You can call any of the helper methods of the String object on a string primitive since JavaScript automatically converts between string primitives and String objects.

Hence , the answer to this question is c. ii and iii only

#SPJ3

Similar questions