Introduction to Java and Scala
Java and Scala are two of the most popular programming languages used in the software industry today. Both languages are widely used for developing enterprise… Read More
We can produce a bean from a field using @Bean annotation. Example@Bean@Named("dataSource1")SqlDataSource sqlDataSource1 = new SqlDataSource("abc.com", "Krishna"); … Read More
In scala we can redefine the same method to do different operations but with the same method name, this concept is called Method Overriding.
scala uses override modifier to override metho… Read More
You can construct a cache key with method parameters and specify it using ‘key’ attribute of @Cacheable annotation. Example1: Method with one parameter @Cacheable(key = "#… Read More
Step 1: Define two beans of CacheManager.@EnableCaching@Configurationpublic class MultipleCacheManagerConfig {@Bean(name = "caffeineCacheManager")@Primarypublic CacheManager cacheManager() {… Read More
Scala packages are similar to Java packages with few differences. In Scala, a. a single source file have contributions to multiple packages. b. &nb… Read More
Amita: I have just started with Scala so please forgive if this turns out to be silly.I am trying to implement a linked list in Scala. So, I created a file that contains MyList class and oth… Read More
Android Architecture Components: Working with Room Persistence Library
What is Android Architecture Components?
> Architecture components are a set of Android libraries that help y… Read More
Problem with mappingsIn our project we came across a really big problem related to mapping. Having two systems that initially were defined by the BA to be somehwat simillar we have chosen th… Read More
1.The Java interpreter is used for the execution of the source code.TrueFalseAns: a.2) On successful compilation a file with the class extension is created.a) Trueb) FalseAns: a.3) The Java… Read More