![]() ![]() It returns the value of the first argument raised to the power of the second argument. It returns a positive double value, greater than or equal to 0.0 and less than 1.0. Math.exp(p) Explain the following functions Question 1 To find the absolute value of a number y. Math.round() returns the value in float data type.įalse Write down the syntax for the following functions Question 1 Java.Math class is used for different mathematical functions. The return data type of Math.log() is double. ⇒ b = 12.0 State True or False Question 1 Reason - Math.ceil() returns the smallest whole number greater than or equal to its argument. What will be the final value stored in the variable b? Given double b = Math.ceil(3.4) + Math.pow(2,3) Reason - Math.rint(-9.4) will give -9.0 as it is nearest integer to -9.4. What will be the final value stored in the variable k? Given: double k = Math.rint(-9.4) + Math.sqrt(9.0) So, data type of variable d will be double. Here, the arguments are of double data type hence, Math.min() will return a double value. Reason - The return data type of Math.min() function depends on its arguments. What data type will you refer for the variable d? Reason - ceil() returns the whole number greater than or equal to the number and max() returns the greater number between its arguments. What will be the final value stored in the variable m? Math.abs() returns the absolute value of its argument so the final output is 9.0. As -9.0 is the largest mathematical integer less than -8.35 so it is returned in this case. Reason - Math.floor() method returns the largest double value that is less than or equal to the argument and is equal to a mathematical integer. What will be the final value stored in the variable p? JDK: It is the software development environment that is mainly used in the development of Java applications and applets.Chapter 1 - Unit 6 Mathematical Library Methods Class 10 - APC Understanding Computer Applications with BlueJ JRE: Java Runtime Environment provides an environment for the Java programs to be executed. It can run on any OS irrespective of the environment because of Java Virtual Machine. JVM: One of the main features of Java is Write Once Run Anywhere, i.e. Java Architecture consists of mainly three components: Set of programs that enable us to develop our programs.Ĭontains JRE(Java Runtime Environment) that is used to run our programs. Java Micro Edition(ME): develop applications for mobile devices. Java Enterprise Edition(EE): develop server-side applications. Java Standard Edition(SE): develop applications that run on the desktop. Apart from this, it can also be used in Android development. It is easy and used to develop any kind of program. Java is a high-level, general-purpose, object-oriented programming language. Which of the following is used to find and fix bugs in the program? Which of the following statements are true about finalize() method? Identify the interface which is used to declare core methods in java? Which of the following exception is thrown when divided by zero statement is executed? Exception created by try block is caught in which block How many times will “Interviewbit” be printed. ![]() Identify the correct way of declaring constructor. Identify the prototype of the default constructor. What is the implicit return type of constructor? What is the variables declared in a class for the use of all methods of the class called? Identify the modifier which cannot be used for constructor. Where does the system stores parameters and local variables whenever a method is invoked? Identify the return type of a method that does not return any value. ![]() How many objects will be created in the following? To which of the following does the class string belong to. What does the following string do to given string str1. Identify the output of the following program. In which of the following is toString() method defined? Identify what can directly access and change the value of the variable res. Identify the keyword among the following that makes a variable belong to a class,rather than being defined for each instance of the class. Identify the correct restriction on static methods. Identify the corrected definition of a package. When is the object created with new keyword? Find the value of A after execution of the following program. Select the valid statement to declare and initialize an array. When an array is passed to a method, what does the method receive? Find the output of the following program. Automatic type conversion is possible in which of the possible cases? What is the size of float and double in java? Number of primitive data types in Java are? ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |