#QuestionsAndAnswers

Spring

21. What is Annotation based Container configuration? How can we turn on annotation wiring in Spring framework?Annotation-based container configuration is an alternative to XML setups. Rather than using XML for describing a bean wiring, the developer moves the configuration to the component class by using annotations on the appropriate class, field, or method declaration.Because annotation […]

Spring Read More »

Spring

1. What is Spring Framework? Spring is one of the most widely used Java EE frameworks. Spring framework core concepts are “Dependency Injection” and “Aspect-Oriented Programming”.Spring framework can be used in normal java applications also to achieve loose coupling between different components by implementing dependency injection. We can perform cross-cutting tasks such as logging and

Spring Read More »

Core Java

41. What is Static block in java?Static block in Java is mainly used to initialize the static data members. The specialty of the static block is that it is executed before the main method at the time of class loading.An example of the static block is as follows: 42. Can we execute a program without

Core Java Read More »

Core Java

31. What is operator precedence in java?Java provides a set of rules and regulations for particularly specifying the order in which operators are evaluated. If the expression has many numbers of operators then the operator precedence comes into action. This operator precedence evaluates the operators present in the expressions based on the priority. For example,

Core Java Read More »

Core Java

21. What is Super in java?Super is a keyword that is used to access the method or member variables from the superclass. If a method hides one of the member variables in its superclass, the method can refer to the hidden variable through the use of the super keyword. In the same way, if a

Core Java Read More »

Core Java

11. What is Encapsulation?It is a technique used for hiding the properties and behaviors of an object and allowing outside access only as appropriate. It prevents other objects from directly altering or accessing the properties or methods of the encapsulated object. We can make the fields as private or protected and let them to be

Core Java Read More »

Core Java

1. What is java and its history?Java is a popular object-oriented programming language. It is defined as a complete collection of objects. By using Java, we can develop lots of applications such as gaming, mobile apps, and websites. 2. What are the core principles or features of java? 3. Is java high performance?Yes. Java uses Just-In-Time

Core Java Read More »

Scroll to Top