IT102 Java Package and Math Class Flashcards
______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.
Java packages
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.
classes and interfaces
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.
package
Types of packages in Java
Java API packages or built-in packages
User-defined packages
_____ is an application programming interface that functions within software built using the Java software programming language.
Java API
Java API is an__________ that functions within software built using the Java software programming language.
application programming interface
Some of the the commonly used built-in packages are:
java.util
java.applet
java.awt
java.net
contains utility classes which implement data structures like linked list, dictionary and support ; Date/ Time operations
java.util
contains classes for creating applets
java.applet
contain classes for implementing the components for graphical user interfaces (like button, menus etc.
java.awt
contain classes for supporting networking operations
java.net
package Naming convention
java.math.lang
java- is a top level package
lang-is a sub package
math- is a class which is presdent in the package lang.
OOP
OBJECT-ORIENTED PROGRAMMING
Classes are like ____ that we can use when writing programs.
ready made templates
Each class has its own methods, which are the _____ you can perform using that class.
actions