Flashcards
Java Questions
Cards in this deck (10)
- 1Why is Java called the “Platform Independent Programming Language?”Java was designed with versatility in mind. Its application programs can run on any platform without requiring a programmer to rewrite or recompile the data for each separate platform.
- 2What is JVM?JVM stands for “Java virtual machine” and is a process virtual machine capable of executing Java bytecode, aware of the specific instruction lengths and other necessities of any underlying hardware platform.
- 3What is Spring?Spring framework promotes a POJO (Plain Old Java Object) programming model, which is considered to be good programming practice and also makes J2EE (Java 2 Enterprise Edition) development easier to use.
- 4What is the difference between JDK and JRE?The Java Runtime Environment (JRE) is essentially the JVM where Java programs are being executed.
The Java Development Kit (JDK) is the full-featured software development kit for Java. - 5What are Spring beans?What are Spring beans?
Beans are the objects that form the backbone of an application and are managed by the Spring IoC container. Beans are created with the configuration metadata that is supplied to the container. An example would be XML definitions. - 6What are some of the benefits of using Spring?Lightweight. The basic version of the Spring framework is around 2MB, making Spring lightweight in terms of size and transparency.
Inversion of Control (IoC). Spring uses the technique of IoC to achieve loose coupling and give objects their dependencies instead of creating or searching for dependent objects.
Container. Spring manages and contains the configuration of application objects, as well as their life cycles.
Aspect Oriented (AOP). Spring supports Aspect-oriented programming. It also separates application business logic from system services to enable cohesive development.
MVC framework. Spring utilizes a well-designed MVC framework that is efficient and popular in comparison to other types of web frameworks.
Transaction management. Spring’s consistent management interface can be scaled up or down for global and local transactions.
Exception handling. Spring’s application programming interface (API) translates technology-specific exceptions into consistent, unchecked exceptions. - 7What do system.gc() and runtime.gc() methods do?Both of these methods can be used as a hint to the JVM to start a garbage collection. It is, however, up to the JVM to start the collection immediately or at a later time.
- 8What is application context?An application context is similar to a bean factory in that both are capable of loading definition, wiring beans together, and dispense beans upon request. But an application context also has additional functions, including a generic way to load file resources, a means for resolving text messages, and events to beans that are registered as listeners.
- 9What is JDBC?JDBC is an abstraction layer. It allows users to choose between databases and enables developers to write database applications in Java without the need to worry about the underlying details of specific databases.
- 10What is reflection?Reflection describes code that can inspect other code in the same system and make modifications at runtime.
Information
- Description
- Profissionalizante Informática Flashcards on Java Questions, created by Daniel Paiva Fernandes on 30/08/2022.
- Created by
- Daniel Paiva Fernandes
- Views
- 0
- Rating