Java Interview - Prep - Fullstack - Dev - 2
Java Interview - Prep - Fullstack - Dev - 2
If you find any question or answer is incorrect or incomplete then you can submit your question or
answer directly with out any registration or login at our website. You just need to visit Full Stack
Developer (Java) Interview Questions And Answers to add your answer click on the Submit Your
Answer links on the website; with each question to post your answer, if you want to ask any question
then you will have a link Submit Your Question; that's will add your question in Full Stack Developer
(Java) category. To ensure quality, each submission is checked by our team, before it becomes live.
This Full Stack Developer (Java) Interview preparation PDF was generated at Saturday 6th
February, 2021
You can follow us on FaceBook for latest Jobs, Updates and other interviews material.
www.facebook.com/InterviewQuestionsAnswers.Org
If you need any further assistance or have queries regarding this document or its material or any of
other inquiry, please do not hesitate to contact us.
Best Of Luck.
Guide.
ie
w
Q
ue
Question - 1:
Tell us what's Your Favorite Kind Of Role?
Ans:
st
Answer it as honestly as possible. If you are keen on moving on to a managerial role, let your potential employer know that. If you want to stay in the technical field
itself, make that clear too.
io
View All Answers
Question - 2:
ns
company's requirements might be different from your interests, so it is ideal that the expectations are set straight from the get-go.
View All Answers
ns
Question - 3:
Explain me how Familiar Are You With Design Patterns?
w
Ans:
This question will reveal your understanding of maintenance and code reuse, especially clean and readable code. Any aspiring full stack developer should know the
principle and skill of basic prototype design, UI design, and UX design to manage different scenarios at work.
er
Question - 4:
s.
Explain me how do you keep yourself updated about the new trends in the industry?
Ans:
O
This is a typical question to understand your involvement in technology. A good way to demonstrate your involvement in continuous learning would be by speaking
about the community meetups you visit. You can also talk about the webinars and the forums you regularly attend. If you have personal projects on which you apply
R
Question - 5:
Tell me some Examples Of Web Application That You've Built And How Did You Do It?
Ans:
Through this question, the interviewer will get an idea of how you think and work with tools. The answer should be specific and clearly state why you developed it
either on front-end or back-end.
View All Answers
Question - 6:
Explain me the main difference between GraphQL and REST?
Ans:
This is a moderately difficult question but a good developer would be able to get through with this in ease. An important difference between GraphQL and REST is
that GraphQL doesn't deal with dedicated resources. Everything referred to as a graph is connected and can be queried to app needs.
View All Answers
Question - 7:
Explain me what are you coding currently?
Ans:
In
A person who loves technology is always working with it. Whether it be for your company or for your own recreational reasons. Good programmers will always have
something to share. Candidates who code willingly for personal learnings will always stand out here.
View All Answers
te
Question - 8:
Explain me what is the difference between final, finalize and finally?
rv
Ans:
final is a Java keyword used to indicate that either a method can not override in a subclass, or a class can not be extended or a field can not be modified. finalize is a
ie
method that gets called on an instance of an Object when it is garbage collected. finally is a Java keyword used in exception handling to indicate a block of code that
should always be run whether an exception is thrown or not.
View All Answers
w
Question - 9:
Basic Full Stack Developer (Java) Interview Questions:
Q
Ans:
* What is your total experience?
ue
* Have you ever worked with web applications? Describe the projects.
* Did you ever have problematic situations or conflicts when fulfilling the task? Describe them.
* What software, technologies and/or tools did you use in your previous projects?
* What are your expectations as to the opened position?
st
Question - 10:
io
Tell us what's the most recent thing that you have learned?
Ans:
ns
This question is used to probe the authenticity of the information you furnished in your last question. It is important that you are aware of the latest in the industry and
have a pulse of what's happening. You might talk about a website that you tested recently, or talk about an obnoxious case study about a serious bug you recently read
about. A point to note, never give the interviewer an impression that you have learned nothing in the past 6 months. This is a fast-changing tech game, and being
up-to-date with the current trends is an absolute must.
View All Answers
A
Question - 11:
ns
developers for describing a pattern which is used to decouple layers and components in a system.
View All Answers
er
Question - 12:
Tell us have You Tried Implementing Your Knowledge In Full Stack For Pet Projects?
s.
Ans:
Working at your job will not always boost your learning curve. Any aspiring developer should try and implement codes on their personal projects that include website
O
development. Remember, a self-motivated coder might have several projects to experiment and learn. Hiring managers are constantly looking for candidates who
enjoy the whole process of web development.
R
View All Answers
Question - 13:
G
Question - 14:
Please explain what is Event Loop?
Ans:
Node.js is a single threaded application but it support concurrency via concept of event and callbacks. As every API of Node js are asynchronous and being a single
thread, it uses async function calls to maintain the concurrency. Node uses observer pattern. Node thread keeps an event loop and whenever any task get completed, it
fires the corresponding event which signals the event listener function to get executed.
Question - 15:
In
called the BMP (Basic Multilingual Plane), that is, code points with a value of U+10000 or greater.
The reason is historical: when Java was first defined, one of its goal was to treat all text as Unicode; but at this time, Unicode did not define code points outside of the
BMP. By the time Unicode defined such code points, it was too late for char to be changed.
rv
Question - 16:
ie
Question - 17:
io
Can you explain me the key advantages of HTTP/2 as compared with HTTP 1.1?
Ans:
ns
An important operational benefit of HTTP/2 is that it avoids the head-of-line blocking problem in HTTP 1.
View All Answers
ns
Question - 18:
Tell me what is the most puzzling programming challenge you have come across recently?
w
Ans:
Speak about the most recent bug or a discrepancy you came across and explain how you went ahead to overcome it. Tell the interviewer that you are a person who
believes in collaborative work. Depict how you could solve the issue with the help of a colleague, online community or your mentor. It is always good to ask when
er
Question - 19:
Do you know how does Garbage Collection prevent a Java application from going out of memory?
O
Ans:
This is a tricky one... it doesn't! Garbage Collection simply cleans up unused memory when an object goes out of scope and is no longer needed. However an
R
application could create a huge number of large objects that causes an OutOfMemoryError.
View All Answers
G
Question - 20:
Please explain what is the best implementation or debugging you have done in the past?
Ans:
This is a tricky question. This will actually give the hiring manager an idea of both the complexity and the style of projects you have done in the past. You should
explicitly mention the issues you faced and the measures you took to overcome that roadblock. You can additionally speak about the learnings you earned from the
issue.
View All Answers
Question - 21:
Tell me how do you stay aware of new technologies related to full stack web development?
Ans:
This question is asked to find out how involved or uninvolved a candidate is in the technology community. Interviewees should respond by describing a few meetups
they are part of related to JavaScript, or personal projects that they have displayed in GitHub
View All Answers
Question - 22:
Tell me the main difference between REST and GraphQL?
Ans:
In
The main and most important difference between REST and GraphQL is that GraphQL is not dealing with dedicated resources, instead everything is regarded as a
graph and therefore is connected and can be queried to app exact needs.
View All Answers
te
Question - 23:
General Full Stack Developer (Java) Job Interview Questions:
rv
Ans:
* How can you define such terms as inversion control, virtual function, and dynamic bidding?
ie
Question - 24:
st
The client may then decide to cache the resource, along with its ETag. Later, if the client wants to retrieve the same URL again, it will send its previously saved copy
of the ETag along with the request in a "If-None-Match" field.
If-None-Match: "unique_id_of_resource_version"
On this subsequent request, the server may now compare the client's ETag with the ETag for the current version of the resource. If the ETag values match, meaning
that the resource has not changed, then the server may send back a very short response with a HTTP 304 Not Modified status. The 304 status tells the client that its
A
Question - 25:
w
Explain me which technologies and languages would you need to develop a project from scratch?
Ans:
er
This is a hypothetical question geared at understanding the level at which the hiring manager will gauge your readiness to start the job. It is an easy way to distinguish
a good full stack developer from someone who is an amateur. People who have difficulty transmitting their thoughts will have bleak chances of getting through at this
point.
s.
Question - 26:
O
Tell us what is the biggest mistake you did in any of your projects? How did you rectify it?
Ans:
R
As they say, 'No man is an island'. Similarly, you can't be working on technology and be right all the time. That is not imaginable. You need to be honest here and
talk about a mistake that you think was serious. To add to it, speak about your learnings from this mistake and explain the procedure you adopted to minimize the
G
damage done.
View All Answers
Question - 27:
Tell us have You Ever Struggled To Implement Or Debug Something In The Past While Working On Web Development?
Ans:
This could be easily one among the trickiest questions in an average job interview. Any experienced full stack developer would have struggled at some point to
implement or debug something. As a candidate, you should explain in a crisp manner why you faced the issue. Don't forget to end the answer with how you overcame
the roadblock and what you learned from the experience at the level of an individual or team player.
View All Answers
Question - 28:
Explain me what's the difference between a ClassNotFoundException and NoClassDefFoundError?
Ans:
A ClassNotFoundException means the class file for a requested class is not on the classpath of the application. A NoClassDefFoundErrormeans that the class file
existed at runtime, but for some reason the class could not be turned into a Class definition. A common cause is an exception being thrown in static initialization
blocks.
View All Answers
In
Question - 29:
Please explain what is the contract between equals and hashCode of an object?
te
Ans:
The only obligation is that for any objects o1 and o2 then if o1.equals(o2) is true then o1.hashCode() == o2.hashCode() is true.
rv
Note that this relationship goes only one way: for any o1, o2 of some class C, where none of o1 and o2 are null, then it can happen that o1.hashCode() ==
o2.hashCode() is true BUT o1.equals(o2) is false.
View All Answers
ie
Question - 30:
w
concatenate multiple Strings together. However, the methods on StringBuffer were marked as sychronized, which meant that there was a performance penalty, hence
StringBuilder was introduced to provide a non-synchronized way to efficiently concatenate and modify Strings.
View All Answers
ue
Question - 31:
Explain me something About Your Favorite Language And Why?
st
Ans:
In addition to being an ice-breaker, this is a good question to know how well the candidate enjoys coding and working with programming languages. An ideal
candidate for the full stack developer job should have multiple favorite languages rather than just a single one. Your answer should definitely include HTML, CSS,
io
Question - 32:
Tell us can you relate of an experience when you found your colleagues code to be inefficient? How did you deal with it?
Ans:
A
This helps to determine a candidate's quality standards and also gives an impression of his team playing skills. You must demonstrate that you have high-quality
assurance standards, and show comfort in pointing out flaws or for that matter bugs to others. However, you must pay focus on portraying that you are good at giving
positive feedback, getting the work done without creating resentment.
ns
Question - 33:
w
Both are methods used in HTTP requests. Generally it is said that GET is to download data and PUT is to upload data. But we can do both downloading as well as
uploading either by GET/POST.
* GET:
s.
If we are sending parameters in a GET request to the server, then those parameters will be visible in the URL, because in GET, parameters are append to the URL. So
there's a lack of security while uploading to the server.
We can only send a limited amount of data in a GET request, because the URL has its max limit and we can not append a long data string to the URL.
O
* POST:
If we are using POST then we are sending parameters in the body section of a request. If we send data after using encryption in the body of an http request, it's quite a
bit more secure.
R
Question - 34:
Tell me what is the purpose of each of the HTTP request types when used with a RESTful web service?
Ans:
The purpose of each of the HTTP request types when used with a RESTful web service is as follows:
* GET: Retrieves data from the server (should only retrieve data and should have no other effect).
* POST: Sends data to the server for a new entity. It is often used when uploading a file or submitting a completed web form.
* PUT: Similar to POST, but used to replace an existing entity.
* PATCH: Similar to PUT, but used to update only certain fields within an existing entity.
* DELETE: Removes data from the server.
* TRACE: Provides a means to test what a machine along the network path receives when a request is made. As such, it simply returns what was sent.
* OPTIONS: Allows a client to request information about the request methods supported by a service. The relevant response header is Allow and it simply lists the
supported methods. (It can also be used to request information about the request methods supported for the server where the service resides by using a * wildcard in
the URI.)
* HEAD: Same as the GET method for a resource, but returns only the response headers (i.e., with no entity-body).
* CONNECT: Primarily used to establish a network connection to a resource (usually via some proxy that can be requested to forward an HTTP request as TCP and
maintain the connection). Once established, the response sends a 200 status code and a "Connection Established" message.
Question - 35:
In
* Docker can be used to build test boxes, during your deploy process to facilitate continuous integration testing.
* Docker can be used to provision boxes in the cloud, and with swarm you can orchestrate clusters too.
View All Answers
ie
Question - 36:
w
Question - 37:
Can you write a function to detect if two strings are anagrams (for example, SAVE and VASE)?
Ans:
st
This is my go-to first interview question. It helps me gauge a candidate's ability to understand a problem and write an algorithm to solve it.
If someone has not solved the problem before, I expect to see some code with loops and if/then's. Maybe some HashMaps. The things I look for are ability to break
down the problem to see what you need to check, what the edge cases are, and whether the code meets those criteria.
The naive solution is often to loop through the letters of the first string and see if they're all in the second string. The next thing to look for is, the candidate should
io
also do that in reverse too (check string 1 for string 2's letters)? The next thing to look for is, what about strings with duplicate letters, like VASES?
View All Answers
ns
Question - 38:
Tell me how do you run a Java application on the command line and set the classpath with multiple jars?
Ans:
A
Some people will be thinking "what!?" but I've met a lot of Java developers who've not run a Java application outside of an IDE for years.
java -cp /dev/myapp.jar:/dev/mydependency.jar com.codementor.MyApp
ns
Question - 39:
Explain me what Are The Latest Trends In Full Stack Web Development?
w
Ans:
According to industry experts, a candidate who is passionate about full stack development should be aware of the following trends:
er
* The rise of Vue JS Functional, real-time web apps, progressive apps and mobile web development.
* Programming benefits from JavaScript improvements
* The emergence of more compatible extensions.
s.
This question will help filter those candidates who are not keen on upskilling in technology. If you read blogs or books on web development or attend
seminars/webinars on the same topics, don't forget to mention it.
Displaying how up-to-date you are in the field will give the interviewer enough confidence to hire you.
O
Question - 40:
Tell us are you aware of design patterns?
G
Ans:
While answering this question you should show your ability to understand common errors that might creep in while creating web applications. If your knowledge is
formal and deep, you must push the employer to gain confidence in the experience you possess in understanding a clean and readable code.
View All Answers
Question - 41:
Tell me what is your favorite language and why?
Ans:
Full Stack Web Developers work with a multitude of languages. Having just one loved coding language might be an alarm signal. Ideally, a candidate must have a
few languages that he loves, preferably, some with which he can design the front end and others with which he can take care of the back end. A candidate should be
able to demonstrate that well and remember to include the basic most used ones like HTML, CSS, Python etc.
View All Answers
Question - 42:
Can you please explain what is CORS? How does it work?
Ans:
Cross-origin resource sharing (CORS) is a mechanism that allows many resources (e.g., fonts, JavaScript, etc.) on a web page to be requested from another domain
outside the domain from which the resource originated. It's a mechanism supported in HTML5 that manages XMLHttpRequest access to a domain different.
CORS adds new HTTP headers that provide access to permitted origin domains. For HTTP methods other than GET (or POST with certain MIME types), the
In
specification mandates that browsers first use an HTTP OPTIONS request header to solicit a list of supported (and available) methods from the server. The actual
request can then be submitted. Servers can also notify clients whether "credentials" (including Cookies and HTTP Authentication data) should be sent with requests.
View All Answers
te
Question - 43:
Tell me what is Bridge pattern?
rv
Ans:
Bridge pattern is used when we need to decouple an abstraction from its implementation so that the two can vary independently. This type of design pattern comes
ie
under structural pattern as this pattern decouples implementation class and abstract class by providing a bridge structure between them.
The bridge pattern is useful when both the class and what it does vary often. The class itself can be thought of as the abstraction and what the class can do as the
implementation. The bridge pattern can also be thought of as two layers of abstraction.
w
Follow us on FaceBook
www.facebook.com/InterviewQuestionsAnswers.Org
Follow us on Twitter
https://twitter.com/InterviewQA