Computer Science, asked by riteshalhat2018, 5 months ago

Question 1:
(a) Define JVM.
(b) Define Variable and Expression
(c) What is the use of keyword final? How will declare in java program
(d) Differentiate between Math.ceil() and Math.floor() with solved example
(e) What is the difference between / and % operator with solved example​

Answers

Answered by Anonymous
0

a.

Java virtual machine (JVM) is a virtual machine that enables a computer to run Java programs as well as programs written in other languages that are also compiled to Java bytecode. The JVM is detailed by a specification that formally describes what is required in a JVM implementation.

b.A variable is an unknown value. An expression is a way of expressing a concept using an unknown value (variable).

c.In Java, the final keyword can be used while declaring an entity. Using the final keyword means that the value can't be modified in the future. This entity can be - but is not limited to - a variable, a class or a method.

d.The method Math. floor returns the largest Double data type that is less than or equal to the argument and is equal to mathematical integer. The method Math. ceil returns the smallest Double data type that is greater than or equal to the argument and is equal to mathematical integer.

e./-it is used for finding quotient

%-it is used to find remainder.also known as modulus

Similar questions