The Top 10 Interview Question in Java 1. What is Java? Java is a high-level, object-oriented, robust, secure programming language, platform-independent, high-performance, Multithreaded, and portable programming language. It was developed by James Goslingin June 1991. It can also be known as the platform as it provides its own JRE and API. 2. What is the platform? A platform is the hardware or software environment in which a piece of software is executed. There are two types of platforms, software-based and hardware-based. Java provides the software-based platform. 3. What are the advantages of Packages in Java? There are various advantages of defining packages in Java. 1. Packages avoid the name clashes. 2. The Package provides easier access control. 3. We can also have the hidden classes that are not visible outside and used by the package. 4. It is easier to locate the related classes. 4. What is an object? The Object is the real-time entity having some state and behavior. In J...
Comments
Post a Comment