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.

A

class

17
Q

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

A

methods

18
Q

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

A

java.lang

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.

A

classes

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
Q

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.

A

java.lang package

26
Q

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.

A

numerical calculations

27
Q

When using the math class in java, its important to think about both ____ and _____

A

precision and accuracy

28
Q

Java Math Class Basic arithmetic operations

A

addExact
subtractExact
multiplyExact
incrementExact
decrementExact
negateExact
divideExact

29
Q

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

A

overflows

30
Q

methods that throws an arithmetic exception if the result is _____

A

overflows

31
Q

is a mathematical expession where a variable is raised to constant exponent

A

Power Function

31
Q

methods that throws an _______ if the result is overflows

A

arithmeticException

31
Q

are mathematical functions that relate the angles of a triangle to the lengths of its sides.

A

Trigonometric Functions

32
Q

is a specific type of power function where the exponent is a fraction.

A

Root Functions

33
Q

are used to adjust a number to a specified level of precision

A

Rounding Functions

34
Q

Java API is an application

programming interface (API) that functions within software built using the ——–.

A

Java software
programming language

35
Q
A