How does the version control process works?

Initiate, pull, branch, merge, commit, push. (Init) Make your own repository. (Pull) Download an existing repository from a url. (Branch / Merge )Make revisions. Commit then push your modifications. It seems like there might be a misunderstanding in your question. The question is related to Core Java, but the topic you’re asking about, the version … Read more

How does a 3 tier application differ from a 2 tier one?

Tiers are the physical units of separation or deployment, while layers are the logical units of separation. Imagine that you’re designing an e-commerce website. A 3 tier architecture would consist of web pages, a web server and a database, with the corresponding 3 layers being the “Presentation”, “Business Logic” and “Database” layers. If you take … Read more

What is the difference between checked and unchecked exceptions?

In general, unchecked exceptions represent defects in the program (bugs), which are normally Runtime exceptions. Furthermore, checked exceptions represent invalid conditions in areas outside the immediate control of the program. Explain Checked Exceptions and Unchecked Exceptions with examples Unchecked exceptions : represent defects in the program (bugs) – often invalid arguments passed to a non-private … Read more

What are the differences between checked and unchecked exceptions?

A checked exception is any subclass of Exception (or Exception itself), excluding class RuntimeException and its subclasses. Making an exception checked forces client programmers to deal with the possibility that the exception will be thrown. eg, IOException thrown by java.io.FileInputStream’s read() method Unchecked exceptions are RuntimeException and any of its subclasses. Class Error and its … Read more

What is the difference between forward and sendredirect?

Both method calls redirect you to new resource/page/servlet. The difference between the two is that sendRedirect always sends a header back to the client/browser, containing the data in which you wanted to be redirected. In Java, particularly in the context of servlets and JSP (JavaServer Pages), forward and sendRedirect are two different mechanisms used for … Read more