Which is the best, most recognized Java certification?

Oracle certified java certification receives the highest value as it is one of the most typical certification and thus hard to crack. It requires comprehensive knowledge of Java technologies. Oracle certification has been known to give a salary hike, position elevation or job proficiency. Oracle offers different stages of certification – junior, professional, associate, and experts, specialist. Once you got this certification, many doors related to Java technology like software development, application development, will open for you.

Java certification offered by oracle:

●Oracle Certified Associate, Java SE 7 Programmer (OCAJP 7).

●Oracle Certified Associate, Java SE 8 Programmer (OCAJP 8).

●Oracle Certified Professional, Java SE 7 Programmer (OCPJP 7).

●Oracle Certified Professional, Java SE 8 Programmer (OCPJP 8).

●Oracle Certified Professional, Java SE 9 Programmer (OCPJP 9).

To prepare for this certification, you need proper programming techniques which you can learn by doing Java certification course or by taking java mock exams.

Which Java Certification course should I do?

Are you new to Java programming world?

If the answer is Yes, then you have the following two certifications as the first one to crack for decorate your profiles.

  • Oracle Certified Associate, Java Programmer I (OCAJP)
  • Oracle Certified Professional, Java Programmer II (OCPJP)

The above two certifications would give you good understanding the Java programming fundamentals and get you a Job. Note that OCAJP is the entry level and mandatory for writing any of the Java certifications.

Are you already working with Java and enhance your career?

If the answer is Yes, then you have the expert level exams to improve your skills. There are various expert level exams:

  • OCEJWCD – JSP and Servlets
  • OCEJSFD – Java Server Faces (JSF)
  • OCEJWSD – Web Services
  • OCEJPAD – Java Persistence API (JPA)
  • OCEEJBD – Enterprise Java Beans (EJB)

Note: all the above certifications would require the OCAJP as the mandatory certification.

Are you a Java developer with more than 10 years of experience?

If the answer is Yes, then you would probably have to think about writing the Oracle Certified Master, Java EE Enterprise Architect (OCMJEA) exam. This exam not require any basic certification as the mandatory. You can directly write this certification. If you could pass this exam, you will be able to handle any kind of Java projects.

Are you looking for Java certification practice questions?

If the answer is Yes, then you have the option to buy good commercial mock exam simulators like JavaMockexams. With this you will be able to practice several mock exams before the exam. These simulators would provide the questions that are very similar to the real exam.

Hope this helps!!

Why is learning Spring Framework so hard?

Learning Spring Framework is no different from learning to count. I explain the concept here.

I assume you are not “asking” us this question here. You are in fact, telling us that you have found Spring Framework harder to pick up and would like a solution.

If that is the case, please read on.

If you just want to understand why Spring is hard, Please skip anything I say below.

I have been in your shoes and can relate to the question. Here is how I would approach the task of learning Spring Framework.

(This below applies to anything you are struggling with and not just for Spring or even technology for that matter. You could apply this to anything in life with a good chance of success.)

  1. Define the problem

Let’s define what our challenge is here. You mentioned “learning Spring Framework”. And that deserves some clarification in itself.

I am sure you have figured out by now that Spring Framework is actually an ecosystem of various projects and modules.

An explanation of this ecosystem is here but I don’t think you are referring to learning the details in it. There is something else that is on the mind here right on the periphery.

The entire Spring Framework is in question here.

  1. Divide the problem

It would benefit you immensely if you split the question into smaller chunks. To learn Spring Framework, I would start with the smallest unit of work that would get me into the learning mode.

In our case, if you looked at the snapshot above, you would want to go to the “Spring Core” first. That is where Spring began. That is where everything started in Spring world.

To understand Spring Core, you need to understand why you need it to begin with.

You also need to understand where you can use it.

And you need to understand if its worth your time to learn it.

  1. Schedule the learning

Tony Robbins said something wonderful the other day:

If you talk about it, it’s a dream, if you envision it, it’s possible, but if you schedule it, it’s real.

This is where you attack the smallest challenge possible. You identified this in step 2 – It was to get a hello world on Spring Core. I will give you a glimpse of what hello world looks like:

I provide more than one way of bringing Spring into a project from scratch here.

But there are equally qualified articles elsewhere that will get you started. For instance:

Spring MVC hello world example from Mkyong is excellent

A slightly outdated article (yet relevant from core concept) from Tutorialspoint is here

I also like Cave of Programming tutorials by John Purcell on youtube which will provide a good start.

Ranga Karanam has a slew of videos that could provide good start. here is one for beginners.

The trick is to go small and then gradually grow from there.

Let me know if this helps.

What are the steps to develop a mobile application using spring framework?

Spring is made on top of JAVA, and Java si for backend development so you won’t be able to make a mobile application using Spring only; it will hold the datas management, the critical logic but will never handle mobile application UI.

Nevertheless, you made me curious and i search for a Spring integration with Android; as Android being made on top of Java and used to build Android applications it could exist, and it does: Spring for Android, but you’ll still need to learn Android.

As a full-stack developer i recommend you to make your backend with Spring, and follow these steps:

1. The Service Layer on the web server should be created first. For this, can be used framework named “Spring” or Spring Boot”.

2. The Service Layer having the complete functionalities about REST API’s that’s what it’s suggested to create first.

3. In the next step to build the application, you can choose Native Android or Native iOS, but the better and the best option would be, go for React Native as both users android or iOS can download and use the application.

4. In the fourth step, the application will be starting its communication with the service layer as it has the REST API’s.

What is the difference between Spring Boot and the Spring framework?

Let’s go through the definitions of those mentioned things. Assume that we are talking about an application that accepts request from any browser, do certain computing then persist data in specific type of database. A little bit more technical, we are talking about the flow of

Browser <> RESTful layer <> Middle layer <> Database

Spring framework is a Injection dependency framework at first (it’s still as it is today) targeting managing life-cycle of Java components (what so-called beans). Today, Spring framework is pretty bloated with tons facilities/helpers on top of it; but if you look at the big picture, it’s still a framework that glue things together, a middle man to MVC frameworks (Struts 1,2, JSF etc), ORM frameworks (Hibernate, iBatis, JOOQ etc) and other necessary facilities (Quartz, Email, you can tell, whatever you need, most likely, there’s a Spring support). Back to our assumed flow, it takes quite a lengthy tutorial to set Spring framework up and running because Spring framework nature is to provide flexibility of choices to you.

Spring boot on the other hand is built on a totally different mantra. It’s basically a suite, pre-configured, pre-sugared set of frameworks/technologies to reduce boiler plate configuration providing you the shortest way to have a Spring web application up and running with smallest line of code/configuration out-of-the-box. As you can see from there Spring Boot page, it took less than 20 LOC to have a simple RESTful application up and running with almost zero configuration. It definitely has a ton of way to configure application to match your need, this is the Spring Boot Reference Guide for your reference

What are some things every Java developer should know?

The foremost thing every Java developer should know is that the language is not “finished”. After a period of relatively slow development, updates have accelerated in recent years leading to smaller but more frequent feature drops. JDK 11 will be released this year, and each new release carries with it new enhancements, features, updates to the standard library and more. Hence, to me, the most important thing to know is the limit of one’s knowledge (and a desire to expand it).

Having said that, here are some of the things I have learned over the years that have served me well.

1. Get familiar with the Java Class Library

Shipping with the JVM itself, this library is probably the most well-debugged Java library available. Pretty much anyone using Java is debugging it. As such, leveraging it as much as possible is a good start on the way to not have too many bugs.

Having said that, there are quirks, some of which are surprising. My personal favourite, and an item that often flies under the radar, is spurious wakeup, a decades-old artifact that permeates many imperative threaded programming languages. It is documented in depthrepeatedly in the Java documentation, yet I had missed it and most people I introduce to it are unaware of it as it is one of those bugs that mostly only happens on a heavily loaded system and thus is easily missed.

Additionally, it follows from the Java language evolution that so does the JCL. This adds an ongoing — but very useful — effort to update one’s knowledge of the JCL as new features are added. For example, the introduction of Lambda expressions in Java was a nice addition from a syntax point of view, but it was made all the better by the JCL adding new methods to all old interfaces that effectively eliminated the need for many types of common boilerplate, such as Map.computeIfAbsent().

2. Learn how to write documentation properly

One of the most-frequently misunderstood parts of the JCL I encounter with developers is Comparator. This is also one of the most striking ones, as it is ostensibly an extremely simple interface: one function that says if an element comes before or after another element. Let’s have a look at the javadoc for the all-important compare function:

Compares its two arguments for order. Returns a negative integer, zero, or a positive integer as the first argument is less than, equal to, or greater than the second.

In the foregoing description, the notation sgn(expression) designates the mathematical signum function, which is defined to return one of -1, 0, or 1 according to whether the value of expression is negative, zero or positive.

The implementor must ensure that sgn(compare(x, y)) == -sgn(compare(y, x)) for all x and y. (This implies that compare(x, y) must throw an exception if and only if compare(y, x) throws an exception.)

Actually, it goes on for three more paragraphs, each carving out a more specific use-case, and none of which bothering to provide an example of the more-and-more theoretical description provided.

The end result is that most developers I know of have effectively given up on this documentation and will just run the comparison in a test case to see if they got it the right way around or not (it’s a 50–50 chance anyway).

Compare it, for example, with the documentation for String.substring() which spends far less time being theoretical, ending up providing concrete examples and thus allowing the reader to quickly grasp the essence of the method.

3. Threading is the Dark Side (mostly). See how to avoid using threads explicitly.

Much work has been done on the Java side to provide methods that abstract away threading. Constructs such as ForkJoinPool, implicitly used when using Stream.parallel(), and JCL packages such as java.nio/2 deal with different ways of avoiding to use/create multiple threads.

This trend has been predicated by multiple avenues, both Java and otherwise. For example, RxJava has been preaching this pattern for a while. It’s also one of the reasons for the popularity of NodeJS. There are many advantages of doing it, and it is a testament to the JVM that it can support different approaches, gaining the advantages of them.

4. Don’t try to outsmart the JVM.

Java, the JVM and the JCL have had contributions from many smart people. Yes, some of the parts make little sense, and others have been redone multiple times because of inherent flaws; however, on the whole, a lot of thought has gone into it. It’s possible, though unlikely, to outsmart it.

An excellent source on this is the JVM Anatomy Park, a strongly recommended read on how the JVM does cool and smart stuff under the hood for you. The one I’ll choose to highlight (but there are more, and do have a look at them all!) is lock elision. In short, it’s a way for the JVM to completely eliminate synchronized blocks that it determines don’t perform useful locking. As a developer one can therefore write correct code while the JVM makes sure it is performant.

A related issue would be the synchronized keyword. A younger, more naïve me would come armed with the theory of locking and figure out a situation where a Spinlock would be better than a Mutex. That’s great and all, until one figures out (after not seeing any performance improvement) that Java will automatically use both spinlock and mutex for synchronized depending on how it is performing.

Of course there are still cases for judicial use of synchronisation and reasons for when to do what. But outsmarting the JVM is almost never a good reason to write code.

5. Java has loads of tooling, for a good reason. Leverage it!

Perhaps one of the biggest benefits that come with Java as such an established language is the veritable cornucopia of tools associated with it, from static code analysis, to runtime configuration, to convention libraries and pretty much everything under the sun.

Any good Java developer today should know how to leverage that code. Doing this has two benefits.

First, it makes it easier to debug code, find errors before they reach production, find them afterwards and optimise the code. There is no reason to make these tasks anything but easier.

Second, and far more dear to my heart, is that leveraging all this existing code makes one’s own codebase all that much smaller. Assuming the tooling chosen is good (e.g. Spring) then that ideally means less code, less bugs.

What should I learn before learning Spring?

How to code or program.

Knowing Java means you know a programming language, not that you know how to program. Knowing how to program means that you know the structuring principles to putting an application together. You know when to use a linked list instead of an array.

The way I began to learn programming is the book: The Structure and Interpretation of Computer Programs. Also known as SICP. Read it and do the exercises. More than once.

I have run across many people who read Java, and even write some Java. But all they could really do is crib code snippets. The did not understand how the whole thing worked.

Also, I think you don’t need any other specific prerequisites to learn Spring. But it is still enormous, if you move beyond Spring IOC, you might want to peek into JavaEE a bit and get a foundation of what’s there.

Once you’re comfortable coding using Spring, then you might want to get certified.

We halved the price of our simulators at www.springmockexams.com and www.javamockexams.com for limited time only –  take a look here bit.ly/SMEBP and here bit.ly/JMEBP

Should a beginner focus more on Core Java or Spring?

For me, I think beginners should concentrate more on Core Java first and for in-depth knowledge of Core Java and its core features, you may study and practice reading Decodejava.com presenting simple and easy Java tutorial.

For beginners they have covered most of the Java features –

  • Control Statements -Control statements like if, if-else, switch, while loop, break, continue etc control the flow of our program. To know more about control statements, starting with if statement, please read Java if statement
  • Java Exceptions– Exception is an unusual exceptional condition or a runtime error, which occurs only during the runtime of a Java program. To know about Java Exceptions and how they are caused in a Java program, you may read Exception Handling in Java
  • String – String is a nothing but a sequence of characters within double quotes. To know about String and its various important methods, please follow Java String Class – Decodejava.com
  • File Input/Output – File Input/Output classes are used to read/write data from the files. To know more about file input/output and its important classes with short code examples , please follow – Java File Class – Decodejava.com
  • Thread – A thread is a program in execution that is performing some specific task. Thread is the most important feature of Core Java and to know more Thread and its features with easy code examples, please read Threads in Java – Decodejava.com
  • Applet – An applet is a Java program that can be transported over the internet and executed by a Java enabled web-browser. To know more about Applet and it’s important features, you may read Java Applet Class- Decodejava.com
  • Collection Framework – Collection Framework provides important interfaces and classes using which we can manage a group of objects. Collections comes in the advance topics of Core Java but you shouldn’t miss it. To know more about every Collection classes with short code examples, you may read ArrayList in Java- Decodejava.com
  • Swing package- Swing framework gives us an ability to create window based applications and its easy to use graphical user interface(GUI)For more on Swing and its classes with easy code examples, you may follow Java Swing- Decodejava.com

Hope this helps and don’t forget there are no shortcuts to success, so practice your Java programming as much as possible to excel.

By the way, I am also really happy to announce some very exciting news: to celebrate the imminent release of Spring 5 and Java 9,  we launched our simulators SALE CAMPAIGN. We halved the price of our simulators at www.springmockexams.com and www.javamockexams.com for limited time only. Take a look here bit.ly/SMEBP and here bit.ly/JMEBP

If you are interested in collaborating with us, you can join our partner program at bit.ly/SMEPART  and here bit.ly/JMEPART

 

Spring Batch Tutorial: Batch Processing Made Easy with Spring

Spring Batch is a comprehensive framework that’s designed to facilitate the development of robust batch applications. It’s lightweight and easy to set up. Moreover, it’s even easier to use.

In this article, you’ll get free online resources for you to learn the programming model and the domain language of batch applications. You’ll get detailed code examples that should help you to get a head start in Spring Batch.

Here’s our recommended resources for Spring Batch learning:

  1. Spring Batch – Wikipedia
  2. Spring Batch
  3. http://www.mkyong.com/tutorials/…
  4. Spring Batch Tutorial – Introduction Get Best Examples
  5. Spring Batch Tutorial – The ULTIMATE Guide (PDF Download)
  6. Spring Batch Tutorial: Introduction

Hope you find them useful.

By the way, I am also really happy to announce some very exciting news: to celebrate the imminent release of Spring 5 and Java 9,  we launched our simulators SALE CAMPAIGN. We halved the price of our simulators at www.springmockexams.com and www.javamockexams.com for limited time only. Take a look here bit.ly/SMEBP and here bit.ly/JMEBP

If you are interested in collaborating with us, you can join our partner program at bit.ly/SMEPART  and here bit.ly/JMEPART

 

Top 5 Spring Boot Interview Questions with Answers for Java/JEE Programmers 2018

Here is our top 5 list of the most common Spring Boot Interview Questions based on our recent survey.

1. What is Spring Boot? Why should we use it?

Spring Boot is a Java framework from Sring umbrella which is developed to simplify the use of Spring Framework for Java development. It helps in automation, configuration, and dependencies.

Why should we use it? It provides a lot of convenience by auto-configuration which helps improve productivity because it allows developers and programmers to focus on writing the business logic.

2. What is starter dependency in Spring Boot? 

This question is usually asked because after examining several Spring-based projects, they noticed that there is always some set of libraries which are used together e.g. Spring MVC with Jackson for creating RESTful web services. Since declaring a dependency in Maven’s pom.xml is difficult, they combined many libraries into one based upon functionality and created this starter package.

This saves you a lot of hassles from declaring many dependencies. Moreover, frees you from compatibility and version mismatch issue.

3. What is Spring Initializer and why should you use it?

It helps in initial setup – it’s a web application that helps you to create initial Spring boot project structure and provides Maven or Gradle build file to build your code.

4. Where do you define properties in Spring Boot application?

You can define related properties into a file called application.properties. This can be done manually or you can use Spring Initializer to create this file, albeit empty.

You don’t need to do any special configuration to instruct Spring Boot load this file. If it exists in classpath then Spring Boot automatically loads it and configure itself and application code according.

5. What is the difference between an embedded container and a WAR?

The main difference between these two is that you can run Spring Boot application as a JAR from the command prompt without setting up a web server. To run a WAR file, you need to set up a web server.

Thanks for reading our first article so far. If you like these Spring Boot Interview Questions then please share with your friends and colleagues. If you have any feedback or doubt then please leave us a comment.

By the way, I am also really happy to announce some very exciting news: to celebrate the imminent release of Spring 5 and Java 9,  we launched our simulators SALE CAMPAIGN. We halved the price of our simulators at www.springmockexams.com and www.javamockexams.com for limited time only. Take a look here bit.ly/SMEBP and here bit.ly/JMEBP

If you are interested in collaborating with us, you can join our partner program at bit.ly/SMEPART  and here bit.ly/JMEPART