IT102 Java Package and Math Class Flashcards

1
Q

______are important for organizing classes and interfaces in a clear way. They help manage code, prevent name conflicts, and control access to different parts of the code.

A

Java packages

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

Java packages are important for organizing _____ and ____ in a clear way. They help manage code, prevent name conflicts, and control access to different parts of the code.

A

classes and interfaces

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

A ____ in java is like a folder that groups related classes and interfaces together. It helps keep things organized, allows you to reuse code, and avoids problems with names being the same.

A

package

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

Types of packages in Java

A

Java API packages or built-in packages
User-defined packages

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

_____ is an application programming interface that functions within software built using the Java software programming language.

A

Java API

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

Java API is an__________ that functions within software built using the Java software programming language.

A

application programming interface

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

Some of the the commonly used built-in packages are:

A

java.util
java.applet
java.awt
java.net

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

contains utility classes which implement data structures like linked list, dictionary and support ; Date/ Time operations

A

java.util

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

contains classes for creating applets

A

java.applet

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

contain classes for implementing the components for graphical user interfaces (like button, menus etc.

A

java.awt

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

contain classes for supporting networking operations

A

java.net

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

package Naming convention
java.math.lang

A

java- is a top level package
lang-is a sub package
math- is a class which is presdent in the package lang.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

OOP

A

OBJECT-ORIENTED PROGRAMMING

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

Classes are like ____ that we can use when writing programs.

A

ready made templates

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

Each class has its own methods, which are the _____ you can perform using that class.

A

actions

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

Each____ has its own methods, which are the actions you can perform using that class.

17
Q

Each class has its own _____ , which are the actions you can perform using that class.

18
Q

The _____ package is one of the most important packages in java.

19
Q

The java.lang package is on of the most important packages in java. It includes _____ that are essential for writing most of your code. This packages has _____ for mathematical calculations, working with strings, and system operations.

20
Q

The java.lang package is on of the most important packages in java. It includes classes that are essential for writing most of your code. This packages has classes for _______, working with strings, and system operations.

A

mathematical calculations

21
Q

The java.lang package is on of the most important packages in java. It includes classes that are essential for writing most of your code. This packages has classes for mathematical calculations, working with strings, and ______.

A

system operations

22
Q

The java.lang package is on of the most important packages in java. It includes classes that are essential for writing most of your code. This packages has classes for mathematical calculations, _______, and system operations.

A

working with strings

23
Q

You can find nthe java.lang.package in the folder of the _____.

A

Java Runtime Environment

24
Q

The _____ is part of the java.lang package, so its available to all Java programs without needing to import it. This class helps with numerical calculations by providing methods for common math functions like trigonometry, logarithms, exponential, and rounding.

A

Math class

25
The math class is part of the _______, so its available to all Java programs without needing to import it. This class helps with numerical calculations by providing methods for common math functions like trigonometry, logarithms, exponential, and rounding.
java.lang package
26
The math class is part of the java.lang packages, so its available to all Java programs without needing to import it. This class helps with_______ by providing methods for common math functions like trigonometry, logarithms, exponential, and rounding.
numerical calculations
27
When using the math class in java, its important to think about both ____ and _____
precision and accuracy
28
Java Math Class Basic arithmetic operations
addExact subtractExact multiplyExact incrementExact decrementExact negateExact divideExact
29
refers to a situation where the result of the division operation exceeds the maximum or minimum value that can be represented by the data type
overflows
30
methods that throws an arithmetic exception if the result is _____
overflows
31
is a mathematical expession where a variable is raised to constant exponent
Power Function
31
methods that throws an _______ if the result is overflows
arithmeticException
31
are mathematical functions that relate the angles of a triangle to the lengths of its sides.
Trigonometric Functions
32
is a specific type of power function where the exponent is a fraction.
Root Functions
33
are used to adjust a number to a specified level of precision
Rounding Functions
34
Java API is an application programming interface (API) that functions within software built using the --------.
Java software programming language
35