Core Java Interviewfragen und Antworten
Question: Explain the usage of Java packages.Answer: This is a way to organize files when a project consists of multiple modules. It also helps resolve naming conflicts when different packages have classes with the same names. Packages access level also allows you to protect data from being used by the non-authorized classes.e.g. java.lang β basic language functionality and fundamental types java.util β collection data structure classes java.io β file operations java.math β multiprecision arithmetics java.nio β the New I/O framework for Java java.net β networking operations, sockets, DNS lookups java.security β key generation, encryption and decryption java.sql β Java Database Connectivity (JDBC) to access databases java.awt β basic hierarchy of packages for native GUI components javax.swing β hierarchy of packages for platform-independent rich GUI components java.applet β classes for creating an applet |
Zum Wiederholen speichern
Speichere diesen Eintrag als Lesezeichen, markiere ihn als schwierig oder lege ihn in einem Wiederholungsset ab.
Melde dich an, um Lesezeichen, schwierige Fragen und Wiederholungssets zu speichern.
Ist das hilfreich? Ja Nein
Am hilfreichsten laut Nutzern:
- How could Java classes direct program messages to the system console, but error messages, say to a file?
- What are the differences between an interface and an abstract class?
- Why would you use a synchronized block vs. synchronized method?
- How can you force garbage collection?
- What are the differences between the methods sleep() and wait()?