Showing posts sorted by relevance for query struts-interview-questions-answer-j2ee. Sort by date Show all posts
Showing posts sorted by relevance for query struts-interview-questions-answer-j2ee. Sort by date Show all posts

Friday, November 1, 2019

Top Fifty Coffee Generics In Addition To Collection Interview Questions

Java Collection as well as Generic are a rattling of import topic for Java Interviews. They likewise nowadays around of the hardest questions to a programmer when it comes to interviews, particularly Generics. It's non slow to start sympathise what a item slice of code doing amongst those query grade as well as other signs as well as thus the pressure level of interviews likewise makes it hard to reply complex usage of Generics.  But, amongst proper training as well as paying attending to both Java Collection as well as Generic, yous tin solve that hurdle. If yous are looking for Java chore but hasn't done good inward the interviews yous convey given thus far thus yous convey come upwardly to the correct place. In this blog, I convey shared a lot of Java interview questions on diverse topics as well as difficulty levels.

There are Java questions for beginners equally good equally practiced programmers. They are theoretical questions based upon Java programming concepts equally good equally coding as well as information construction algorithms questions for programmers, as well as this article is exclusively going to brand that collection fifty-fifty to a greater extent than valuable.

In this article, I am going to part around of the oft asked Java Collection as well as Generic questions from Interviews. These are the questions yous convey often seen on a telephonic circular of Java interview equally good equally on face-to-face interviews. It's useful for both beginners having 2 to iii years of sense equally good equally experienced Java programmers amongst v to half-dozen years of experience.

This listing has a collection of questions which has both slow as well as tough questions inward it but the nearly of import matter is that nearly of the questions convey already been asked on interviews. I am certain yous mightiness convey likewise seen inward your interviews. knowing the answers of these questions volition non exclusively aid yous to crevice your Java interview but likewise sympathise Java Generics as well as Collection topic in-depth, which volition eventually aid yous to write meliorate Java programmers as well as code.

Btw, if yous are novel to Java or desire to solidify your Java cognition thus yous should cheque out a comprehensive course of written report like The Complete Java Masterclass earlier attempting to solve these questions. It volition aid yous immensely yesteryear filling gaps inward your cognition as well as going dorsum as well as forth. It's likewise the nearly up-to-date course of written report as well as covers every novel characteristic introduced betwixt Java 8 to Java 12 releases.





50+ Java Collection as well as Generic Interview Questions

Without wasting whatsoever to a greater extent than of your time, hither is my listing of 50+ Java interview questions on Collection as well as Generics. If yous convey done around operate inward Java thus yous should know the reply to these questions but if yous don't yous tin ever run across the answer. Instead of writing answers here, I convey linked them to relevant shipping thus that yous tin examine to solve the work yesteryear yourself hither as well as if yous demand yous tin acquire an in-depth give-and-take on private shipping to acquire the topic inward depth.


1)  What is the Java Collection Framework as well as How do yous select dissimilar collections? (answer)
Here is the diagram which answers this question:

 Java Collection as well as Generic are a rattling of import topic for Java Interviews Top 50 Java Generics as well as Collection Interview Questions


2)  What is Generics inward Java? (answer)
hint: Java characteristic to ensure type security at compile time.

3)  Which are your favorites classes from Java Collection Framework? (answer)
hint: Collection, List, Set, Map, ArrayList, Vector, LinkedList, HashMap etc

4)  When do yous role Set, List, as well as Map inward Java? (answer)
hint - role laid when yous don't demand duplicates, role List when yous demand fellowship amongst duplicates as well as role Map when yous demand to shop key-value pair.

5)  Which Sorted Collection convey yous used? (answer)
hint - TreeSet is 1 lawsuit of a sorted Collection

6)  How HashSet plant inward Java? (answer)
hint - same similar HashMap, using hashing as well as equals() as well as hashCode() method. HashSet is genuinely backed yesteryear HashMap where keys are elements yous shop inward HashSet as well as values are ever null.

7)  Which ii methods yous should override for an Object to hold upwardly used equally a fundamental inward hash-based Collections? (answer)
hint - equals as well as hashcode

8)  Can yous role HashMap inward a concurrent application? (answer)
hint - Yes, but exclusively if yous are reading from the HashMap as well as its initialized yesteryear a unmarried thread, otherwise no.

9) What is the divergence betwixt HashMap as well as Hashtable inward Java? (answer)
hint - HashMap is fast but non threadsafe, Hashtable is tedious but thread-safe

10) What is the divergence betwixt synchronized as well as concurrent Collection inward Java? (answer)

11) How ConcurrentHashMap plant inward Java? (answer)
partitions map into segments as well as lock them individually instead of locking the whole map.

12) What is PriorityQueue inward Java? (answer)
Influenza A virus subtype H5N1 information construction which ever keeps the highest or lowest chemical factor at the caput thus that yous tin access or take away it inward constant time.

13) What is type-erasure inward Generics?  (answer)
Its a business office of Java compiler which removes all type related information later compilation from Java thus that the generated code is same similar earlier Generics.

14) What is the divergence betwixt ArrayList as well as Vector inward Java?  (answer)

15) What is the divergence betwixt LinkedList as well as ArrayList inward Java?  (answer)

16) What is the divergence betwixt Hashtable as well as ConcurrentHashMap inward Java?  (answer)

17) What is the divergence betwixt LinkedHashSet as well as TreeSet inward Java?  (answer)

18) Difference betwixt extends as well as super inward Java Generics?  (answer)

19) What do yous hateful yesteryear thread-safe collection? Give an lawsuit of 2 thread-safe Collection inward Java?  (answer)

20) What is the human relationship betwixt equals as well as compareTo inward Java?  (answer)

21) What is the default size of ArrayList as well as HashMap inward Java?  (answer)

22) What is the charge factor, capacity, as well as Size of Collection inward Java?  (answer)

23) What is the divergence betwixt Iterator as well as Enumeration inward Java?  (answer)

24) When does ConcurrentModificationException occur?  (answer)

25) What is the divergence betwixt fail-safe as well as fail-fast Iterator inward Java?  (answer)

26) What is CopyOnWriteArrayList inward Java?  (answer)

27) When do yous role BlockingQueue inward Java?  (answer)

28) What is the divergence betwixt the peek() as well as poll() method of Queue interface?  (answer)

29) How do yous detect if an ArrayList contains an Object or not?  (answer)

30) Can nosotros shop Integer inward an ArrayList<Number> inward Java?  (answer)

31) How acquire method of HashMap plant inward Java?  (answer)

32) How do yous form a Collection inward Java?  (answer)

33) What is the divergence betwixt ListIterator as well as Iterator inward Java?  (answer)

34) What is the divergence betwixt HashSet as well as LinkedHashSet inward Java?  (answer)

35) When do yous role EnumSet inward Java?  (answer)

36) List downwards four ways to iterate over Map inward Java?  (answer)

37) How to create read-only Collection inward Java?  (answer)

38) What is IdentityHashMap inward Java?  (answer)

39) Difference betwixt IdentityHashMap as well as WeakHashMap inward Java?  (answer)

40) What is the divergence betwixt Comparator as well as Comparable inward Java?  (answer)

41) What is DeQueue? When do yous role it?  (answer)

42) How to do yous take away an Object from Collection?  (answer)

43) What is the divergence betwixt the remove() method of Collection as well as Iterator inward Java?  (answer)

44) What is the divergence betwixt ArrayList as well as ArrayList<?> inward Java?  (answer)

45) What is the divergence betwixt PriorityQueue as well as TreeSet inward Java?  (answer)

46) How tin I avoid "unchecked cast" warnings?  (answer)

47) What is the "diamond" operator inward Java?  (answer)

48) What is covariant method overriding inward Java?  (answer)

50) What is the divergence betwixt bounded as well as unbounded wildcards inward Java generics?  (answer)


That's all inward this listing of 50 Java Generics as well as Collections Interview Questions.  They are a rattling of import topic from Java Interview signal of view, particularly collections. Make certain yous fix them good earlier going for whatsoever interviews. If yous demand farther training yous tin likewise cheque out these Java Interview books as well as courses:

Resources
Java Interview Guide : 200+ Interview Questions as well as Answers
Spring Framework Interview Guide - 200+ Questions & Answers
questions)
  • Top 10 Spring Framework Interview Questions amongst Answers (see here)
  • 50+ Data Structure as well as Algorithms Problems from Interviews (questions)
  • 10 Great Hibernate Interview Questions for Java EE developers (see here)
  • 10 Great XML Interview Questions for Java Programmers (read here)
  • 20 Great Java Design Pattern Questions asked on Interviews (see here)
  • 10 pop Struts Interview Questions for Java developers (list)
  • 20 Tibco Rendezvous as well as European Monetary System Interview Questions (read more)
  • 10 oft asked Servlet Interview Questions amongst Answers (see here)
  • 20 jQuery Interview Questions for Java Web Developers (list)
  • 10 Great Oracle Interview Questions for Java developers (see here)
  • Top 10 JSP Questions  from J2EE Interviews (read here)
  • 12 Good RESTful Web Services Questions from Interviews (read here)
  • Top 10 EJB Interview Questions as well as Answers (see here)
  • Top 10 JMS as well as MQ Series Interview Questions as well as Answers (list)
  • Review these 50 Java questions earlier interviews (review)
  • 10 Great JDBC Interview Questions for Java Programmers (questions)
  • 15 Java NIO as well as Networking Interview Questions amongst Answers (see here)
  • Top 10 XSLT Interview Questions amongst Answers (read more)
  • 15 Data Structure as well as Algorithm Questions from Java Interviews (read here)
  • Top 10 Trick Java Interview Questions as well as Answers (see here)
  • Top forty Core Java Phone Interview Questions amongst Answers (list)

  • Thanks for reading this article thus far. If yous similar these Java Generics as well as Collections interview questions thus delight part amongst your friends as well as colleagues. If yous convey whatsoever questions or feedback thus delight drib a note.

    Top 25 Exception Interview Questions For Coffee Programmers

    1) The divergence betwixt checked as well as unchecked Exception inward Java?
    For checked exceptions, the compiler ensures that they are either handled using try-catch, try-finally or try-catch-finally block or thrown away. If a method, which throws a checked exception e.g IOException as well as doesn't handgrip them or doesn't declare them inward throws degree of method, a compile-time fault volition occur. On the other hand, the compiler doesn't do similar checks for an unchecked exception, that's why it is known every bit un-checked. These are too called runtime exception because they extend java.lang.RuntimeException.

    There is or thus other divergence betwixt checked as well as unchecked exception,  checked exceptions are those exception classes, which are a subclass of java.lang.Exception simply non of java.lang.RuntimeException, on the other hand, the unchecked exception e'er extends RuntimeException.

    Some of the well-known examples of checked exceptions are IOException, SQLException, ParseException, etc, spell java.lang.ArrayIndexOutOfBoundsException, IllegalArgumentException and java.lang.NullPointerException has most seen examples of unchecked exception inward Java. See my post checked vs runtime exception for to a greater extent than differences.


    2) What is the divergence betwixt throw as well as throws inward Java? (answer)

    3) Difference betwixt finally, finalize as well as finalizer inward Java? (answer)

    4) What happens when a Thread gets uncaught exception? (answer)

    5) Does in conclusion runs always? On which instance in conclusion doesn't run? (answer)

    6) What is try-with-resource or automatic resources management? (answer)

    7) How to teach a electrical current stack draw of a Thread? (answer)

    8) Difference betwixt Error as well as Exception inward Java? (answer)

    9) Difference betwixt NoClassDefFoundError as well as ClassNotFoundException inward Java? (answer)

    10) What is chaining of Exception? (answer)

    11) How to do custom Exceptions inward Java? (answer)

    12) Can nosotros accept a endeavour block without a catch? (answer)

    13) What are the 5 keywords used inward Exception handling? (answer)

    14) Can y'all pick out receive got of Error similar java.lang.OutOfMemoryError inward Java? (answer)


    15) What is the occupation amongst the below code?

    import java.io.FileNotFoundException; import java.io.IOException;  public class ExceptionInterviewQuestion_01 {      public static void main(String[] args) {         try {             multiple();         } catch (FileNotFoundException | IOException ex) {             e.printStackTrace();         }     }      public static void multiple() throws IOException, FileNotFoundException{                  System.out.println("Inside multiple");     }  }

    Output: 
    This plan volition non compile as well as give y'all the fault  “The exception FileNotFoundException is already caught past times the option IOException”, because FileNotFoundException is a subclass of IOException.

    There are 2 ways to solve this occupation :

    1) Use Simple Catch Block as well as handgrip FileNotFoundException earlier IOException

    try {     multiple(); }catch(FileNotFoundException ex){     ex.printStackTrace(); }catch (IOException  e) {     ex.printStackTrace(); }

    2) Only handgrip IOException instead of both FileNotFoundException as well as IOException.

    try {     multiple(); }catch (IOException  e) {     ex.printStackTrace(); }
     
     
    You tin farther see answer)

    23) What are or thus of the best practices y'all follow spell treatment Errors as well as Exception inward Java? (answer)

    24) What are the pros as well as cons of catching Throwable or Error? (answer)


    That's all close or thus frequently asked Java Exception interview questions. See, how many questions y'all tin reply from this list. I'll post the reply afterward simply if y'all know the reply y'all tin e'er part on the comments section.

    Further Learning
    Complete Java Masterclass
    see here)
  • 10 Great XML Interview Questions for Java Programmers (read here)
  • 50+ Data Structure as well as Algorithms Interview Questions (questions)
  • 20 Great Java Design Pattern Questions asked on Interviews (see here)
  • 10 pop Struts Interview Questions for Java developers (list)
  • 20+ String Coding Problems from Interviews (questions)
  • 10 oft asked Servlet Interview Questions amongst Answers (see here)
  • Top 10 JSP Questions  from J2EE Interviews (read here)
  • 12 Good RESTful Web Services Questions from Interviews (read here)
  • Top 10 EJB Interview Questions as well as Answers (see here)
  • Top 10 JMS as well as MQ Series Interview Questions as well as Answers (list)
  • 10 Great Hibernate Interview Questions for Java EE developers (see here)
  • 10 Great JDBC Interview Questions for Java Programmers (questions)
  • 15 Java NIO as well as Networking Interview Questions amongst Answers (see here)
  • 15 Data Structure as well as Algorithm Questions from Java Interviews (read here)
  • Top 10 Trick Java Interview Questions as well as Answers (see here)
  • Top forty Core Java Phone Interview Questions amongst answers (list)

  • Thanks a lot for reading this article, if y'all similar this article thus delight part amongst your friends as well as colleagues. If y'all accept whatever questions or feedback, delight drib a note.

    Monday, March 30, 2020

    Top Ten Servlet Jsp Interview Questions For Coffee J2ee Programmer - Faq

    Servlets together with JSP Interview Questions are pith of whatever J2EE Interview. Its expected from candidate to convey adept cognition of Servlet, JSP, EJB , Struts or Spring inwards whatever J2EE interview. Consequently Servlets together with JSP Interview Questions are real mutual inwards whatever J2EE Interviews along amongst to a greater extent than or less questions from pith Java, Some interview Questions from Spring together with Some EJB interview questions. Since J2EE is primary platform for edifice company together with spider web application using Java programming language, its of import to fix good for J2EE interview, peculiarly If you lot are inwards application evolution space. Servlet together with JSP forms spider web layer of J2EE framework where Java Server pages is primary persuasion technology together with Servlets are primary Controller constituent of criterion MVC architecture. In this article nosotros volition meet couplet of nearly mutual or oftentimes asked JSP together with Servlet Interview questions together with answers, which tin assistance you lot on your J2EE interview grooming together with agreement to a greater extent than or less key concept of Java spider web applications.


    JSP Servlet Interview Questions Answers
     together with JSP Interview Questions are pith of whatever J Top 10 Servlet JSP Interview Questions for Java J2EE programmer - FAQHere is my listing of oftentimes asked JSP Servlet Interview questions to whatever Java programmer. Most of these Servlet JSP questions has appeared inwards diverse score of J2EE interviews including 2 to iii together with 2 to four years sense level. None of these questions require special inquiry together with neither of them are tricky questions, they all are focused on fundamentals which is key to clear whatever interview.



    Question 1: What is JSESSIONID inwards Java? When does JSESSIONID gets created ?
    One of my favourite Servlet JSP Interview inquiry for 2 to four years sense programmers on spider web development. JSESSION id is a cookie which is used to handle session inwards Java spider web application. JSESSIONID is created past times Web Container whenever a novel session is created. See What is JSESSIONID inwards Servlet JSP for to a greater extent than details.

    Question 2: What is departure betwixt include activity together with include directive inwards JSP?
    Another real pop JSP Interview questions, to a greater extent than often than non asked to 2 to iii years experienced J2EE programmer. There are couplet of differences, nearly of import of them is that include activity is request  time inclusion piece include directive is translation fourth dimension inclusion of to a greater extent than or less other resources e.g. JSP or html pages. This questions is likewise asked every bit departure betwixt file include together with page include. See Include activity vs Include directive for to a greater extent than differences.

    Question 3: How create you lot define application broad mistake page inwards JSP?
    Almost inwards every Servlet JSP interview you lot volition meet inquiry from mistake handling. You tin define 2 kinds of mistake pages inwards Java spider web application, i is using tag <error-page> inwards web.xml together with other is past times using mistake page JSP which uses isErrorpage to declare that this jsp page tin survive used every bit mistake page. Other JSP uses that page past times using attribute errorpage="error.jsp". Whenever you lot larn an unhandled exception inwards JSP, asking volition survive routed to mistake page. See How to utilisation mistake page inwards JSP for detailed reply of this question.

    Question 4: Difference betwixt sendredirect together with forrad inwards Servlet ?
    One of the classical Interview Question from Servlet together with JSP. This inquiry is every bit sometime every bit Vector vs ArrayList inwards pith Java. Anyway meet difference betwixt sendredirect together with forward to reply this Servlet Interview question.

    Question 5: How create take variable using <c:set> tag from JSTL ?
    This is i of the tricky Servlet JSP question. Many people assumes that <c:set> tin alone add together or laid variables inwards a particular range only you lot tin likewise take whatever variable from whatever range using JSTL <c:set> tag. See How to utilisation <c:set> JSTL tag inwards JSP for exact agency to take whatever variable from whatever range inwards JSP page.

    Question 6: What is departure betwixt Web Server together with Application Server ?
    This is rather unproblematic Servlet JSP inquiry to answer. If you lot convey used EJB together with then you lot should know that , Web Server doesn't comprise EJB container together with EJB tin non survive deployed on that. Application Server is used to deploy together with run EJB inwards J2EE environment. See 5 departure betwixt Application together with Web Server to meet to a greater extent than differences.

    Question 7: What is departure betwixt URL Encoding together with URL rewriting ?
    URL Encoding together with URL rewriting is full general spider web concept irrespective of Java programming language. URL Encoding refers to encoding URL e.g. replacing infinite amongst %20, you lot tin meet this when browser sends asking to Server. On the other mitt URL Rewriting is agency to handle Session inwards spider web application. See URL Encoding vs URL Rewriting for to a greater extent than differences.

    Question 8: How create you lot larn ServletContext reference within Servlet ?
    ServletContext is real of import object inwards Java Web application. ServletContext object is i per spider web application together with serves every bit application range together with utilisation to shop mutual config together with things which doesn't alter on per session. Its slowly to larn reference of ServletContext inwards jsp using application implicit variable only inwards Servlet is non available inwards HttpServletRequest until version 3.0. You demand HttpSession object to remember ServletContext inwards whatever Servlet. Influenza A virus subtype H5N1 adept follow-up questions is How create you lot larn ServletContext inwards Struts Action shape or Spring Controller classes. See How to remember ServletContext inwards Servlet, Spring together with Struts for to a greater extent than details.

    Question 9: What is departure betwixt ServletContext together with ServletConfig inwards Java ?
    One of those classical Servlet Interview Questions which you lot can't afford to miss. Again ServletContext is used to supply application broad configure piece ServletConfig is used to configure together with supply initialization parameter to i Servlet. See ServletContext vs ServletConfig for to a greater extent than differences.

    Question 10: Which opened upwards origin tag library convey you lot used ?
    This is an interesting Servlet JSP questions together with gives an chance to exhibit how many tag library you lot are familiar amongst together with which ones convey you lot used. Most J2EE programmer reply this inquiry amongst maxim JSTL pith tag library, Struts tag library , Spring tag library or display tag, which is quite pop tag library to display tabular information together with provides lot of characteristic out of box e.g. paging, sorting together with export functionality.

    Question 11: What is departure betwixt GET together with POST method inwards HTTP protocol?
    Another classical spider web interview question, non specific to Servlet or JSP only real of import inwards context of spider web evolution which is based on HTTP protocol. There several differences betwixt GET together with POST method including length of information required to Send to Server. GET is less secure together with tin alone post express information thus non useful to transfer sensitive information. See GET vs POST HTTP method for to a greater extent than differences.

    Question 12: What does load-on-start-up chemical element inwards web.xml do?
    One of the tough Servlet JSP Interview inquiry peculiarly to 2 years sense guy, who may non survive exposed to all tags of web.xml. load-on-startup is related to loading of Servlet. See What is load-on-startup tag inwards web.xml for to a greater extent than details.

    These were to a greater extent than or less Servlet together with JSP Interview questions together with reply you lot tin human face for quick revision purpose. If you lot convey faced whatever interesting Servlet JSP inquiry or if you lot are looking reply for whatever Servlet JSP inquiry than delight share.

    Further Learning
    Top 10 Spring MVC Interview question

    Saturday, November 9, 2019

    Top Xl Advanced Java/J2ee Interview Questions Answers For Experienced - Iii To V Years

    I have got shared many posts most Java interview query inward the past times but nothing, especially for back upwardly engineer perspective. Since at that spot are a lot of L1 as well as L2 back upwardly task exists inward BFSI (Banking, Finance, as well as Insurance Industry) as well as they are also for the longer term, I decided to write this post. When you lot move for a back upwardly engineer role, especially for Java application live on it to heart as well as person Java or Java EE application, Interviewer expects you lot know basics of Java as well as tin start/stop the application, come across log files, warning developers, as well as other aspects of the back upwardly e.g. opening conference pair to solve production issues, communicating to stakeholders, as well as involving correct peoples. In this article, I volition percentage questions to assist with technical aspects e.g. the essential skills you lot demand to clear a back upwardly engineer interview.

    Even though you lot volition live on interviewed to back upwardly Java application, it's expected from you lot to know SQL, UNIX, XML as well as other key technologies which you lot volition exercise inward your day-to-day job. In this post, you lot volition notice questions which are asked to banking concern represent whether a candidate has required skills to back upwardly Java application or not.


    39 Interview Questions for Java JEE Support Engineers

    Here is my collection of some of the best interview questions for Java as well as JEE back upwardly professionals. If you lot are working inward production services or supporting Java application, these interview query volition assist you lot to create good on your interview. If you lot moving from evolution to back upwardly role so also these questions volition give you lot a proficient thought most what is expected from a Java JEE back upwardly engineers.

    1) How create you lot banking concern represent your Java procedure is running on Linux? (example)
    You tin banking concern represent past times using "ps" ascendancy as well as "grep" ascendancy e.g. ps -ef | grep "myprocess". The keyword which you lot exercise with grep for search tin live on anything unique to your process, something which appears inward its ascendancy draw e.g. get upwardly of the shape which implements the primary method. You tin also create "ps -ef | grep java" to listing all Java process.



    2) How create you lot banking concern represent how much retention as well as CPU your Java procedure is consuming?
    First, you lot demand to notice the PID of your process, which you lot tin notice past times using the "ps" ascendancy equally shown inward the previous question. Once you lot notice the PID you lot tin exercise the "top" ascendancy to notice the CPU as well as retention usage. Alternatively, you lot tin also exercise the prstat ascendancy equally shown here.


    3) What does -Xmx as well as -Xms parameters mean?
    These are parameters to specify heap size inward Java. The -Xms defines the size of the heap when JVM starts upwardly as well as -Xmx is used to specify the maximum heap size for Java application i.e. your heap cannot grow beyond that as well as JVM volition croak past times throwing OutOfMemoryError if your heap doesn't have got plenty infinite to create novel objects. See here to acquire to a greater extent than most heap retention inward Java.


    4) What is the departure betwixt JVM as well as JRE?
    The JRE stands for Java Runtime Environment as well as JVM stands for Java Virtual Machine. You install JRE to run Java application e.g. Applet or Core Java application or Web server similar Tomcat. The JVM is business office of JRE. See here to acquire to a greater extent than differences betwixt JVM as well as JRE.


    5) What is the departure betwixt JVM as well as JIT? (answer)
    The JVM stands for Java Virtual machine spell JIT stands for Just inward fourth dimension Compiler. The JIT is business office of JVM as well as used to convert the Java bytecode into native machine code which runs faster. There is some threshold gear upwardly if a code runs to a greater extent than than the threshold it becomes the candidate of only inward fourth dimension compilation past times JIT.



    6) How create you lot accept the heap dump of a Java process? 
    There are many ways to accept the heap dump of a Java procedure e.g. Tomcat, but most mutual is past times using tools available inward JDK e.g. jVisualVM, jCmd, as well as jmap. Here is the ascendancy you lot tin exercise to accept the heap dump of Java process:

    $ jmap -dump:live, file=/location/of/heap_dump.hprof  PID

    The heap dump volition comprise all alive objects as well as they are stored inward heap_dump.hprof file. Remember, you lot also demand PID of Java procedure which you lot tin notice past times using "ps" as well as "grep" ascendancy equally discussed inward the source question. You tin come across Java Performance Companion past times Charlie Hunt to acquire to a greater extent than most taking as well as analyzing heap dump inward Java to notice retention leak as well as other retention related errors. 



    7) How create you lot accept a thread dump of a Java process?
    Taking thread dump is easier than taking heap dump because you lot don't demand to call back tool. In Linux, you lot tin only exercise the kill ascendancy to accept the thread dump e.g.

    $ kill -3 PID 

    volition impress the thread dump inward the log file or where System.out is redirected. Similarly, inward Windows, you lot tin exercise Ctrl + Break from the ascendancy prompt. Alternatively, you lot tin also exercise jConsole as well as VisualVM to accept the thread dump of Java application inward both Windows as well as Linux. You tin also read Java Performance The Definitive Guide By Scott Oaks to acquire to a greater extent than most thread dump as well as heap dump.



    8) What is OutOfMemoryError inward Java? How create you lot bargain with that?
    The Java virtual machine throws java.lang.OutOfMemoryError when at that spot is non plenty retention to run the application e.g. no to a greater extent than retention to create novel objects, no to a greater extent than retention to create novel threads etc. The most mutual OutOfMemoryError is the java.lang.OutOfMemoryError: coffee heap space, which comes when at that spot is no to a greater extent than retention left to create a novel object.


    9) What is the departure betwixt 32-bit as well as 64-bit JVM? (answer)
    The primary differences betwixt 32-bit as well as 64-bit JVM are that afterward is designed for 64-bit operating arrangement e.g. Windows 8 or afterward versions of Linux. From Java developer's perspective, the primary departure betwixt them comes from heap size. Influenza A virus subtype H5N1 64-bit JVM virtually has unlimited heap memory equally compared to 4GB of the theoretical bound of 32-bit JVM. If your plan needs to a greater extent than memory, meliorate run it on 64-bit JVM with large heap space. See hither to acquire to a greater extent than most 32-bit as well as 64-bit JVM.



    13) What is Garbage Collector? (answer)
    The garbage collector is a element of Java virtual machine which is responsible for reclaiming retention from dead objects. It's i of the key components as well as allows an application developer to focus on application evolution rather than doing retention management. Some of the pop garbage collectors are a Concurrent Mark-Sweep garbage collector as well as G1 garbage collector inward recent times.


    14) How create you lot analyze a heap dump?
    There are many tools to analyze heap dump inward Java e.g. you lot tin exercise the jhat tool which comes along with JDK. You tin also exercise Eclipse Memory Analyzer to analyze heap dump to notice out whatever retention leak inward Java spell dealing with OutOfMemoryError inward Java. See Java Performance The Definitive Guide By Scott Oaks to acquire to a greater extent than about analyzing Java Heap dump.

     I have got shared many posts most Java interview query inward the past times but zero Top xl Advanced Java/J2EE Interview Questions Answers for Experienced - iii to five Years



    15) What is the departure betwixt Web Server as well as Application Server? (answer)
    The primary departure betwixt Web as well as Application Server comes from the fact that you lot cannot run EJB on the Web server similar Tomcat or Jetty. The application server similar WebLogic as well as WebSphere provides the runtime surroundings for EJB as well as other advanced services required past times Java EE or J2EE specification.


    16) What is the departure betwixt Apache httpd as well as Tomcat?
    Though both httpd as well as Tomcat are products of Apache software foundation, the httpd is to a greater extent than pop as well as used across the spider web as well as non only inward Java world. The httpd is a spider web server which tin serve static HTML files as well as dynamic content using PHP, Perl or Python, spell Tomcat is a Servlet container which provides the runtime surroundings for Servlet as well as JSP. You tin also exercise both Apache httpd as well as Tomcat together inward Java world.


    17) Can you lot exercise Apache as well as Tomcat together?
    Yes, you lot tin exercise Apache as well as Tomcat together. There are many Java spider web application which is fronted past times Apache spider web server to deliver static resources e.g. HTML files, images, configuration files etc. You tin so configure Apache to forwards the asking to Tomcat.


    18) How create you lot start as well as halt Tomcat inward Linux?
    When you lot install Tomcat inward Linux past times unzipping the downloaded package, you lot tin come across that at that spot is a startup.sh as well as shutdown.sh file inward the tomcat/bin directory. These scripts are used to start as well as halt Tomcat inward Linux. These scripts internally telephone phone Catalina.sh, the primary script to start Tomcat engine.



    19) How create you lot start as well as halt Apache inward Linux?
    The Apache server runs equally httpd daemon inward Linux as well as you lot tin either exercise kill command after finding the PID of httpd procedure equally shown hither or you lot tin exercise the apachectl script equally shown below to start as well as halt Apache spider web server inward Linux

    Starting Apache spider web server inward Linux

    $ apachectl start

    Stopping Apache web server inward Linux

    $ apachectl stop

    Restarting Apache spider web server inward Linux

    $ apachectl restart
    or:
    /sbin/service httpd restart

    You mightiness demand root access to create if Apache spider web server is non running on your application account.


    20) What is JDBC?
    The JDBC stands for Java Database connectivity as well as it provides API to connect a database from Java programs. Different Java vendors e.g. MySQL, Oracle, Microsoft SQL Server, PostgreSQL they implement the API as well as provides their driver implementation to allow Java to connect to their database. Since almost every venture application has a database, JDBC is real of import for whatever existent globe projects.


    21) What is the departure betwixt JDBC as well as JNDI?
    As I said inward the previous answer, the JDBC stands for Java Database Connectivity as well as provides APIs as well as guidelines to connect a database from Java, spell JNDI stands for Java Naming as well as Directory Interface as well as provides a logical construction for retrieving resources e.g. database, messaging queues, venture Java beans without knowing their physical house e.g. host or port. You tin register a resources with JNDI as well as so residuum of your application element tin access them using JNDI name. The database connexion puddle is the most mutual resources accessed via JNDI inward web servers similar Tomcat or WebLogic.


    22) What is database connexion pool? (answer)
    As it get upwardly suggests, it only a puddle of database connections. Since creating a novel database connexion inward real-time is an expensive procedure as well as tin potentially deadening downwards the response time, many application maintains a puddle of active database connection. When a request comes inward they retrieve a connexion from the pool, acquire the information from the database as well as so render the connexion dorsum to puddle so that it tin live on reused. This way, response fourth dimension is improved inward most of the Java spider web application. See here to setup a database connexion puddle inward Tomcat using Spring framework.


    23) Your Java application is connected to a Database via a connexion pool. Suddenly your database goes down? Is that an number with your Java application? Do you lot demand to restart your Java application?

    hint: Since your Java application is using a connexion pool, it has active connections to database which volition acquire disconnected i time DB goes down. If you lot attempt to execute a query, you lot volition have Socket errors.



    24) How create you lot shipping spider web service asking from Linux? (answer)
    There are some commands available inward Linux e.g. curl as well as wget which allows you lot to shipping HTTP commands, which you lot tin exercise to telephone phone as well as essay your spider web services from Linux. Particular, Curl is used extensively to essay RESTful Web Services because it tin shipping POST request, GET request, asking with headers as well as also authenticate using both basic as well as digest authentication.

    If you lot are working with REST API, I advise learning curl, it's real convenient to banking concern represent if your API is working properly using curl from the ascendancy line. You tin fifty-fifty write a script to automate those stuff.


    25) What is the departure betwixt HTTP as well as HTTPS? (answer)
    This is i of the mutual as well as like shooting fish in a barrel questions. Of course, you lot know the departure betwixt HTTP as well as HTTPS right? well, HTTP is insecure but HTTPS is secure, the extra "s" is for security, which agency it non exclusively encode as well as encrypt the message earlier sending but also verify the identity of the server past times using  SSL certificates provided past times global certificate government e.g. GoDaddy, Thawte, VeriSign, Digicert, GeoTrust, as well as Comodo.  See here to acquire to a greater extent than how SSL as well as Certifications run inward Java spider web application.


    26) What is the departure betwixt the GET as well as POST method? (answer)
    Another uncomplicated but ofttimes asked query on Java back upwardly interviews. The primary departure betwixt the GET as well as POST is that GET is both idempotent and rubber but POST is not. You tin burn GET asking multiple fourth dimension as well as it volition give the same number but multiple POST submission should ever live on avoided. GET is also used to read information from server as well as POST is used to shipping information to the server.


    27) What is the departure betwixt Servlet as well as JSP? (answer)
    This is some other interesting Java JEE back upwardly Interview Question. Even though both Servlet as well as JSP is used to create dynamic HTML the key departure betwixt them is their purpose. Servlet is meant for Java developers as well as you lot write to a greater extent than Java than HTML as well as that's why it serves equally Controller inward many pop MVC framework e.g. DispatcherServlet inward Spring MVC.

    On the other hand, JSP is designed for HTML developers as well as it's to a greater extent than HTML than Java as well as that's why it is used equally "view" inward MVC frameworks similar Spring as well as Struts. See the link inward the reply for to a greater extent than detailed comparison.



    28) What is the departure betwixt Struts as well as Spring MVC?
    This is i time again a pop as well as ofttimes asked query on Java JEE Interviews. Even though both are pop spider web MVC framework for Java applications, the key departure is that Spring brings dependency injection source as well as Struts brings it afterward using Struts 2.0.

    Spring is also a suite of libraries e.g. you lot acquire Spring Security to implement safety inward your application, so at that spot is Spring Boot, Spring Data, Spring Cloud as well as many to a greater extent than useful libraries nether Spring umbrella.

    answer)
    There are many differences betwixt JDBC as well as Hibernate but the most of import i is that JDBC provides an API to connect to the database as well as execute the query but Hibernate is an ORM (Object Relational modeling) framework, which agency it allows you lot to run with objects spell it takes aid of saving as well as retrieving object from database.

    In short, inward JDBC you lot demand to write SQL queries to acquire as well as shop information from database but inward Hibernate you lot only bargain with objects, Hibernate takes aid of issuing SQL queries to the database.


    30) What is the departure betwixt Stack retention as well as heap? Which i is faster? (answer)
    These are only 2 dissimilar retention areas used to shop dissimilar kinds of variables. The stack is local to every thread spell heap retention is shared alongside all threads. Since Stack is closer to thread as well as unremarkably implemented using CPU registers they are faster than heap memory. The stack is used to shop local variables equally good method telephone phone frames spell heap is used to shop objects as well as shape metadata. See the detailed reply for to a greater extent than points.


    31) What is the departure betwixt TCP/IP as well as UDP protocol? (answer)
    There are several differences betwixt TCP as well as UDP protocol but the most of import of them is that TCP provides a guarantee of message delivery spell UDP doesn't give whatever guarantee. Because of this guarantee TCP sends to a greater extent than messages than UDP as well as thus eat to a greater extent than bandwidth as well as slower than UDP. TCP is also connexion oriented protocol spell UDP is connectionless. See the detailed reply for to a greater extent than points.

     I have got shared many posts most Java interview query inward the past times but zero Top xl Advanced Java/J2EE Interview Questions Answers for Experienced - iii to five Years



    32) Your Java application is connecting to some other Java application (server) running on the remote host as well as listening on port 17865. Now, you lot don't have got access to that remote host to move as well as come across if the procedure is running. How create notice if the server is upwardly as well as running?
    hint: you tin exercise the telnet command



    33) You are supporting a Java spider web application which connects to many heart as well as person Java procedure as well as gets information from them to the distribution to clients? One customer complains that the asking for information is taking also long as well as it's almost similar hung? How create you lot troubleshoot this problem?

    hint: banking concern represent the log, banking concern represent database, banking concern represent the file system


    34) The Java application you lot back upwardly connects to a database via a DNS, which automatically switches to the secondary database server when the primary goes down. You notice that inward the trial of a failover, your Java application is non connecting to secondary DB server? How create you lot troubleshoot this problem?

    hint: banking concern represent which version your Java application is running. Some JRE caches the DNS e.g. JRE 1.6

    answer)
    The deadlock is a status which tin occur betwixt 2 or multiple threads. In this case, each of the thread waits for each other as well as cannot progress. In Java, this unremarkably happens when thread 1 holds the lock required past times thread 2 as well as thread 2 holds the lock required past times thread 1. If your Java plan is hung so it could live on a deadlock. You tin accept a thread dump as well as notice out if whatever thread is waiting for the lock concord past times other as well as vice-versa. You tin also exercise jConsole tool to notice deadlock.


    36) What is the race condition? (answer)
    The race status is some other multithreading as well as concurrency põrnikas which happens due to racing betwixt 2 threads, for example, if i thread is updating a variable as well as minute thread tries to read the value earlier it finished. You tin avoid race weather condition past times properly synchronizing your code.


    37) What is the departure betwixt PATH as well as CLASSPATH? (answer)
    Both are key surroundings variable used past times Java platform, but the key departure betwixt them is that PATH points to the JDK binaries or native libraries e.g. java.exe, spell CLASSPATH points to Java binaries e.g. JAR files, which contains bytecode. PATH is also arrangement marker concept independent of Java but CLASSPATH is purely Java concept as well as used past times JVM to charge classes required past times Java application you lot are running.


    38) How create you lot notice the Java version used past times your application? (answer)
    You tin run the coffee -version ascendancy inward the ascendancy prompt to notice out the version of Java used past times your application. If you lot have got multiple JDK or JRE installed so brand certain you lot exercise the i which is used past times your application.


    39) What is JAVA_HOME surroundings variable? (answer)
    The JAVA_HOME is zero but a user defined surroundings variable which points to the installation directory of JDK. For example, if you lot have got installed JDK inward /opt/jdk_1.6_20 inward Linux so the JAVA_HOME variable volition betoken to this directory. Same goes for Windows or whatever other operating system.


    That's all most 39 essential questions fro Java JEE Support Engineer. It's only a pocket-size gear upwardly of questions you lot tin hold off inward whatever service based companionship or investment banks but does call back to create key skills required for back upwardly engineers e.g. UNIX, SQL, Java, as well as others. In the adjacent business office of this article, I volition percentage some of the ofttimes asked questions from Java Support Engineer on SQL, UNIX, as well as other supporting technologies.


    Other topic based Java Interview questions for to a greater extent than practice
    • 21 Java Inheritance Interview Questions as well as Answers (list)
    • 15 Data Structure as well as Algorithm Questions from Java Interviews (read here)
    • Top 10 Spring Framework Interview Questions with Answers (see here)
    • Top twenty Hibernate Interview Questions as well as Answers (list)
    • 10 JDBC Interview Questions for Java Programmers (questions)
    • 15 Java NIO as well as Networking Interview Questions with Answers (see here)
    • 20 Java Design Pattern Questions asked on Interviews (see here)
    • 10 Struts Interview Questions for Java developers (list)
    • 30 OOP Interview Questions with Answer (see)
    • 19 Method overloading as well as overriding interview questions (see here)
    • 10 ofttimes asked Servlet Interview Questions with Answers (see here)
    • 15 Java Enum based interview questions with answers (read)
    • 10 Oracle Interview Questions for Java developers (see here)
    • Top 10 JSP Questions  from J2EE Interviews (read here)
    • 12 Good RESTful Web Services Questions from Interviews (read here)
    • Top 10 EJB Interview Questions as well as Answers (see here)
    • Top 10 JMS as well as MQ Series Interview Questions as well as Answers (list)
    • 10 Hibernate Interview Questions for Java EE developers (see here)
    • 21 Final modifier interview questions with reply (read)
    • 10 XML Interview Questions for Java Programmers (read here)
    • Top 10 XSLT Interview Questions with Answers (read more)
    • Top 10 Trick Java Interview Questions as well as Answers (see here)
    • Top xl Core Java Phone Interview Questions with answers (list)

    This list of Java interview questions for Java, JEE, as well as J2EE back upwardly engineers should live on plenty to create for whatever Java interview. You tin crevice both fresher as well as sense marker interview past times preparing these Java interview questions, at to the lowest degree source few rounds. If you lot human face upwardly whatever other interesting query which is non inward this list, so delight permit me know via comments as well as I'll add together it.

    Further Learning
    Java Web Fundamentals By Kevin Jones
    Spring Framework 5: Beginner to Guru
    JSP, Servlets as well as JDBC for Beginners: Build a Database App


    Friday, January 28, 2011

    Top Thirty Saltation Interview Questions In Addition To Answers For Java/Jee Developers

    Spring Interview Questions Answers 
    Spring Interview Question is i of the get-go things Java programmer should ready earlier appearing on whatever Java or Spring interview. With the immense popularity of Spring frameworks similar Spring MVC as well as Spring Boot inwards Java world, focus on Spring skills on interviews is increasing twenty-four sixty minutes catamenia past times day. For those who don't know, the Spring framework is i of the most pop structures for Java applications, which aims to simplify Java development. It revolutionized the Java evolution when it initially came amongst concepts of  Dependency Injection as well as Inversion of Control, which made writing testable as well as maintainable Java application

    But the Spring framework but didn't halt there; it also provides useful API to Java programmers. The best thing is that Spring has been kept evolving since its inception as well as addressing Java developers delineate of piece of occupation concern inwards unlike areas.

    Spring framework is divided into many unlike modules similar Spring MVC, Spring Integration, Spring Batch, Spring LDAP, Spring Security, Spring Boot, Spring Cloud, as well as several other modules, which focus on a special area.

    For example, Spring Boot tries to acquire inwards fifty-fifty easier to exercise the Spring framework past times reducing the amount of configuration you lot demand to pose inwards for Spring itself. Spring Cloud is evolving to locomote out the best framework for developing cloud-based Java frameworks as well as Microservices, which is a demand for the future, as well as Spring Security has established itself equally the go-to framework for safety Java spider web applications.

    Based on your piece of occupation experience, the Interviewer tin give notice enquire questions from heart as well as mortal Spring or these modules. That's why, piece preparing the Spring interview query focus on Spring core, Spring Security, as well as Spring API, these are principal areas from where the interviewer asks questions.

    If you lot have got working sense inwards Spring-based Java projects, you lot tin give notice rapidly respond most of these Spring questions from several Java interviews. Still, if you lot don't have got whatever prior sense as well as but learning Spring,  I advise you lot to locomote out through Spring Framework 5: Beginner to Guru course on Udemy to larn Spring fundamentals earlier attempting these questions.





    Spring Interview Questions as well as Answers

    Now that you lot know the importance of Spring Framework for Java developers as well as ready to have got on Spring questions on your side past times side interview, let's encounter but about often asked questions on the Spring framework on Java interviews:


    1) What is the Spring framework? Why Java programmers should exercise the Spring framework? (answer)
    Very mutual Spring interview question, Spring is a framework which helps Java programmer inwards development. Spring provides Dependency Injection as well as IOC container, Spring MVC flow, as well as several useful API for Java programmer.


    2) What is the default compass of edible bean inwards the Spring framework? (answer)
    The default compass of a Spring edible bean is the Singleton scope, as well as inwards the spider web application default compass of a saltation edible bean inwards asking scope. Singleton edible bean way the same instance of a edible bean is shared amongst all other beans, piece asking compass way a edible bean is endure entirely for a request.


    3) Does Spring singleton beans are thread-safe?
    No, Spring singleton beans are non thread-safe. Singleton doesn't hateful edible bean would be thread-safe.


    4) What is the Dependency Injection blueprint pattern? (answer)
    Dependency Injection is i of the blueprint patterns, which allows injecting dependency on Objects, instead of object resolving the dependency.


    5) What is Inversion of Control concept, how does Spring back upward IOC? (answer)
    The unproblematic pregnant of inversion of the command way that at i time the framework, Spring is responsible for creating objects, wiring dependencies, as well as managing their life-cycle instead of a developer, which was the illustration before. That's where command is inverted from developer to framework.


    6) What is Spring MVC? Can you lot explicate How i asking is processed? (answer)
    Spring MVC is a framework to railroad train Java spider web applications. It provides an implementation of MVC or Model View Controller architecture, which is built on the separation of concerns as well as makes the evolution of Java spider web application easy. In gild to exercise this inwards your project, you lot demand to larn Spring as well as include its JAR file.

    Spring MVC framework besides supplies an inbuilt persuasion resolver for selecting views. See Spring Master Class - Beginner to Expert to larn to a greater extent than close how Spring MVC internally works.

     Spring Interview Question is i of the get-go things Java programmer should ready befor Top thirty Spring Interview Questions as well as Answers for Java/JEE Developers



    7) What is the View Resolver pattern? how it industrial plant inwards Spring MVC
    View Resolver pattern is a J2EE pattern that allows a spider web application to dynamically conduct its persuasion technology, e.g. HTML, JSP, Tapestry, JSF, XSLT, or whatever other persuasion technology.

    In this pattern, View resolver holds a mapping of unlike views, controller render cite of the view, which is hence passed to View Resolver for selecting an appropriate view. 


    8) How do you lot create a controller inwards Spring? @Controller vs. @RestController? (answer)
    Influenza A virus subtype H5N1 controller is cipher but a class, besides known equally a edible bean inwards Spring terminology. If you lot are using annotation, hence you lot tin give notice create a controller past times using @Controller annotation.

    For RESTful spider web service, you lot tin give notice besides create REST controllers past times using the @RestController annotation, as well as inwards that case, you lot don't demand to exercise the @ResponseBody musical note explicitly to nation Spring how it needs to respond.

    Btw,  if you lot are interested inwards learning to a greater extent than close how to railroad train RESTful Web Service using Spring framework, I advise taking a expect at the REST amongst Spring course by Eugen Paraschiv of Baeldung. It's i of the comprehensive class which non entirely covers basics but besides advanced concept similar versioning, testing, as well as deploying REST API inwards production.


    9) What types of dependency injection are supported past times Spring Framework? When do you lot exercise Setter as well as Constructor Injection, the pros as well as cons?
    There are two types of dependency injection supported past times Spring, constructor based injection, as well as setter-based injection.

    Both types have got their ain advantages as well as disadvantages; you lot should exercise Constructor injection when an object's dependencies are non optional, as well as they must endure initialized amongst their dependencies.

    Also, exercise constructor injection if the gild of initialization or dependency matters because, inwards Setter based injection, you lot cannot impose whatever order. Use setter injection when dependencies are optional. See the difference betwixt setter vs. constructor injection inwards Spring for a to a greater extent than detailed answer.


    10) Can nosotros exercise to a greater extent than than i configuration file for our Spring project?
    Yes, you lot tin give notice exercise equally many equally you lot want, all you lot demand to is import them inwards the principal Spring configuration file which you lot volition charge from your program.


    11) What is Spring Security?
    Spring safety is a projection nether the saltation framework umbrella, which provides back upward for safety requirements of firm Java projects.

    Spring Security, formerly known equally aegis security, provides out of box back upward for creating a login screen, Remember me cookie support, securing URL, authentication provider to authenticate the user from the database, LDAP as well as inwards memory, Concurrent Active Session management back upward as well as much more.

    In gild to exercise Spring safety inwards a Spring MVC based project, you lot demand to include spring-security.jar as well as configure it inwards the application-Context-security.xml file, you lot tin give notice cite it whatever you lot want, but brand certain to render this to ContextLoaderListener, which is responsible for creating Spring context as well as initializing dispatcher servlet. You tin give notice farther encounter Learn Spring Security Certification Class larn to a greater extent than close authentication, authorization, as well as session command using Spring Security.


     Spring Interview Question is i of the get-go things Java programmer should ready befor Top thirty Spring Interview Questions as well as Answers for Java/JEE Developers





    12) What is the deviation betwixt ApplicationContext as well as BeanFactory inwards Spring framework? (answer)


    13) How do you lot telephone band a stored physical care for past times using the Spring framework? (answer)


    14) What do the JdbcTemplate as well as JmsTemplate class offering inwards Spring? (answer)
    They offering a criterion way to exercise JDBC as well as JMS API, without writing the boiler code required to piece of occupation amongst those API.

    15) How do you lot command concurrent Session on Java spider web application using Spring Security? (answer)
    You tin give notice exercise Spring Security to command a release of active sessions inwards Java spider web application. Spring safety framework provides this characteristic out of the box, as well as when enabled, a user tin give notice entirely have got i active session at a time.


    16) Explain Spring MVC stream amongst a unproblematic illustration similar starting from Container receives a asking as well as forrad to your Java application?
    I have got explained to them from start to halt inwards my article how does Spring MVC industrial plant article internally; you lot tin give notice banking company gibe that for a detailed answer.


    17) What is the deviation betwixt Spring MVC as well as Spring core?
    The Spring MVC is component of the Spring framework, which helps you lot to railroad train Java spider web application using model spider web controller pattern, piece Spring Core provides the Dependency injection as well as Inversion of Control. The Spring Container is component of Spring core.

    Both functionalities come upward inwards unlike JAR files. If you lot are developing but a heart as well as mortal Java application using Spring, hence you lot but demand Spring Core, but if you lot are developing a Web application, hence you lot demand spring-mvc.jar equally well. See answer)


    24) Difference betwixt @SpringBootApplication as well as @ContextConfiguration musical note inwards Spring Boot? (answer)


    25) What is the exercise of DispatcherServlet inwards Spring MVC? (answer)


    26) What is the role of InternalResourceViewResolver inwards Spring MVC (answer)


    27) What is the deviation betwixt @Autowired as well as @Inject musical note inwards Spring? (answer)


    28) Difference betwixt @RequestParam as well as @PathVariable inwards Spring MVC? (answer)


    29) Difference betwixt @Component, @Service, @Controller, as well as @Repository annotations inwards Spring MVC? (answer)


    30) How to eat RESTful Web Service using Spring MVC? (answer)


    31) Difference betwixt @SpringBootApplication as well as @EnableAutoConfiguration annotations inwards Spring Boot? (answer)

    These were but about of the Core Spring framework as well as MVC Interview questions from my collection, I have got given brusk answers for most of these Spring interview question. I advise to inquiry to a greater extent than or read along those Spring query to ready for follow-up Spring interview questions. Some Spring MVC questions are tricky similar Struts as well as Spring integration as well as tin give notice endure entirely answered past times experienced Java plan amongst two to 4-year sense inwards the Spring MVC framework.


    Further Reading
    Spring Framework 5: Beginner to Guru
    The 2020 Java Developer RoadMap 
  • 10 Spring MVC as well as REST annotations for Java Programmers 
  • 20+ Advanced Spring MVC Interview Questions 
  • 20 Spring REST Interview Questions for Java developers
  • 10 Java Coding Interview Questions as well as Answer
  • 5 Books to larn Spring Framework better
  • How to implement Role-based access command inwards Spring?
  • Difference betwixt Dependency Injection as well as Factory Pattern
  • 10 Things Java Developers Should Learn 
  • 5 Java as well as Web Development Frameworks You tin give notice learn

  • P.S. - If you lot desire to larn Spring five as well as Spring Boot two from scratch, inwards a guided, code-focused way the I besides advise you lot banking company gibe out Eugen Paraschiv's Learn Spring: The Master Class. He has late launched this class afterward 2.5 years, which is total of exercises as well as examples to farther cement the real-world concepts you lot volition larn from the course.