Saturday, June 15, 2019
Sunday, June 9, 2019
Groovy Interview Questions
Important Interview Question in Groovy .
- Compare Java with Apache Groovy
- Groovy is a scripting language
- Less syntax
- default access modifier is public
- automatic getters and setters
- does not support ARM introduced in java 7
- allows variable substitution inside double quotes
- does not support anonymous inner class , lambda , use closure instead .
- groovy supports operator overloading
- What is AST transformations.
the ability to customize the Abstract Syntax Tree representing your programs before the compiler walks this tree to generate Java bytecode .
- Explain closure in groovy
{ [closureParameters -> ] statements }
- Explain GRAPE
Grape helps you download and cache external dependencies from within your script with a set of simple annotations.
@Grab('org.apache.httpcomponents:httpclient:4.2.1')
- What is the use of @GrabResolver
By default GRAPE uses Maven Central Repository , if we need to add our own repository we can use @GrabResolver .
Friday, May 17, 2019
Java Architect interview questions
- What are the 4 architecture domain TOGAF deal with ?
- business
- data
- application
- technology
- What is TOGAF ADM ?
It provides a tested and repeatable process for developing architectures .
- What are the phases within the ADM .
- preliminary
- architecture vision
- business architecture
- information system architecture
- technology architecture
- opportunities and solution
- migration planning
- implementation governance
- architecture change management
- requirement management
- What are the SOLID principles?
- Explain encryption in Java
Create key object using secret key spec passing key and algorithm
Cipher.getinstance blowfish
Set mode encrypt / decrypt
Cipher.dofinal//encrypted
Base64.encode // encoded
- A method is defined with return type string , I do not want to return anything but still want the method to compile , how can I achieve that ?
- How to access private variables of a class ?
Saturday, April 27, 2019
Design Patterns Interview Questions
- Explain GoF Design patterns .
- Creational : defines how the objects are created
- Structural : defines relationship between the classes
- Behavioral : defines how objects communicate with each other
- Explain Creational Design Patterns .
- Factory
- Abstract Factory
- Builder
- Singleton
- Prototype
- Explain Structural Design Pattern .
- Adapter : implementing class can work with incompatible interface.
- Bridge : enables to implementing class and the interface to vary independently.
- Composite : Composite lets client treat individual objects and compositions of objects uniformly.
- Decorator
- Facade
- Flywheel
- Proxy : a new object created to handle the operation.
- Explain Behavioral Design Pattern .
- Chain of Responsibility
- Command
- Interpretor : how to include language elements
- Iterator
- Mediator : simplify communication between objects
- Observer : multiple objects notification
- State : modify the behavior on state change
- Template : abstract definition of algorithm
- Visitor : add polymorphic functions to class noninvasively .
- Explain J2EE Patterns
- Explain association in Java .
Association : has a relationship
- Composition : sub objects cannot exist without the parent object .
- Aggregation : sub objects can exist without the parent object .
- Explain UML class diagram .
Wednesday, April 24, 2019
Subscribe to:
Posts (Atom)
-
Hi Guys , In this blog I will share information related to error : can't bind to 'formcontrol' since it isn't a known pr...
-
Hi Guys , This blog is about the error " Target container is not a DOM element. " The full error in the console log is ...
-
Error Blog This blog is about the error Error: Objects are not valid as a React child Problem Statement error on start of...