Best of the Week from JCG
This is a new series of sharing core Java interview questions and answers on the Finance domain and mostly on big Investment banks. Many of these Java interview questions are asked on JP Morgan, Morgan Stanley, Barclays or Goldman Sachs. Banks mostly asked core Java interview questions frommulti-threading, collection, serialization, coding and OOPS design principles.
This isn’t going to be a rant about functional programming, which is awesome. This is a warning about some practices that you are very likely going to apply to your code, which are terribly wrong!. Higher order functions are essential to functional programming, and thus, talking about them will help you be the center of attention at parties.
So you want to do microservices? please watch Microservices for Mortals (by Paris Apostolopoulos) So many valid points from Bert Ertman in this presentation around Microservices. Are you considering following this path in your project, in your team or your company? Please grab a coffee, a note pad (if you like hand written notes) and watch this. It is really a pain, waste of energy and very discouraging to see many companies and teams, failing miserably either because they ...
What is a volatile variable? volatile is a keyword in Java. You cannot use this as a variable or method name. Period. Seriously, jokes aside, what is volatile variable? When should we use it? Ha ha, sorry, couldn’t help. We typically use volatile keyword when we share variables with more than one thread in a multi-threaded environment, and ...
Reduce Legacy from Java EE 5 to 7 (by Roberto Cortez) Java EE 5 was first introduced in 2005, while Java EE 7 came out in 2013. There is a 7 year gap between both versions and in technology terms it’s like a century. Many organizations are still stuck using Java EE 5 and there are many valid reasons why they choose not to upgrade. Still, these become irrelevant if you look into some of the reasons to move forward: ... |
|
Latest JCG Examples
1. Immutable class: Immutable class is a class which the state of its instances does not change once it is constructed. Immutable objects are especially useful in concurrent applications. Since they cannot change state, they cannot be corrupted by thread interference or observed in an inconsistent state.
1. Introduction: In this article we will explore the JPA bidirectional @ManyToMany association in a SQL and NoSQL fashion. A @ManyToMany association occurs when multiple records in one table, each correspond to multiple records in a related table. If the records from the second table have an inverse association back to the first table, ...
Play is a Web Framework for Scala and Java and it is a really powerful and complete one. It provides an easy way of building web servers, running on an embedded jetty, and even rest clients with its WS library. In this example, we are going to get a Play Application running. We’ll see how to create it from scratch using typesafe activator 1.2.12, sbt 0.13.5, java 1.8.0_66, scala 2.11.6 and Play 2.4.3.
JUnit Disable Test Example 1. Introduction: There are instances that our test cases aren’t ready yet and it would almost be certain that when we run our builds with these, there is a high probability that our test executions will fail. This can be avoided using the@Ignore annotation.
JMS Topic Example When a publisher sends a message, there may be more than one customer interested in such messages. Publisher broadcasts the message to JMS destination called ‘topic’. There may be more than one consumer subscribed to the topic. All the active clients subscribed to the topic will receive ... |
|
Best Web Code Geeks Articles
As a growing startup that provides a SaaS platform to automate B2B sales lead management and social selling at scale, ProLeads has been pressed to deliver more valuable features while we cut our server hosting costs. Our top two priorities have been (1) ensuring zero downtime in production, and (2) pushing changes to production seamlessly and instantly.
The aim of this example is to have a look at the .fiter(); method of jQuery. What this method does is reduce the set of matched elements to those that match the selector or pass the function’s test. In other words, the filter() method returns elements that match a certain criteria. It lets you specify a criteria.
In a previous article by Marko Locher, we learned how to run a Rails development environment in Docker. Marko also wrote about how to test a Rails app with Docker. So assuming we have our dev environment set up, our app is tested (and the tests are passing), we’re ready to think about deploying our application to production. |
|
New and Noteworthy from the Community
Tools and Techniques for Logging Microservices The microservice architecture is taking the tech world by storm. A growing number of businesses are turning towards microservices as a way of handling large workloads in a distributed and scalable way. In this post, we’ll look at methods for logging microservices and the tools that make them possible. Microservices in a Nutshell ...
SQL vs NoSQL: you do want to have a relational storage by default The concept of NoSQL databases has been around for a while, but there still are quite a few misunderstandings regarding the topic of relational SQL vs NoSQL databases. In this post, I’d like to clarify the most common misconceptions and discuss the primary use cases for each of them.
Looking back at 9 years of Hacker News Hacker News started as a pet project for a venture capital firm named after a concept in lambda calculus, the Y Combinator. Since then, it has grown to become the go-to source of all technology news amongst technology people [citation needed]. Besides serving as the holy grail of daily updates of what's going on in the tech world, it has, over time, managed to accumulate a history of what tech talks about, ...
Next Generation Session Management with Spring Session Session management has been part of enterprise Java for so long that it has faded to the background of our consciousness as a solved problem, and we have not seen any major innovation in that arena in recent memory. However the modern trend towards micro services ...
Goodbye microservices, hello right-sized services If you've been to any conference recently or follow industry news, you have probably heard about microservices. They're everywhere. Whether it is called SOA done right,microservices, or just decomposing big balls of mud, the hype is there, and it's unavoidable.
Point of View: Java Serialization Vulnerability Threatens Millions of Applications A widespread vulnerability in Java environments leaves thousands of businesses seriously exposed. Despite lacking a clever name — ala Heartbleed, Shellshock, and POODLE — this vulnerability is poised to allow hackers to do damage across the Internet. |
|
Blast from the Past !
10 Things You Didn’t Know About Java So, you’ve been working with Java since the very beginning? Remember the days when it was called “Oak”, when OO was still a hot topic, when C++ folks thought that Java had no chance, when Applets were still a thing? I bet that you didn’t know at least half of the following things.
Java Annotations Tutorial – The ULTIMATE Guide (PDF Download) EDITORIAL NOTE: Annotations in Java are a major feature and every Java developer should know how to utilize them. We have provided an abundance of tutorials here at Java Code Geeks, likeCreating Your Own Java Annotations, Java Annotations Tutorial with Custom Annotation and Java Annotations: Explored & Explained.
JUnit Tutorial for Unit Testing – The ULTIMATE Guide (PDF Download) 1. Unit testing introduction 1.1. What is unit testing? A unit can be a function, a class, a package, or a subsystem. So, the term unit testing refers to the practice of testing such small units of your code, so as to ensure that they work as expected. For example, we can test whether an output is what we expected to see given some inputs or if a condition is true or false. |
|
|
|
No hay comentarios:
Publicar un comentario
Te agradezco tus comentarios. Te esperamos de vuelta.