Create a Web project in Eclipse

In Eclipse web projects can be created easily. We will see how to create a simple web project having a JSP file and an HTML file. We will also see how to setup Tomcat server to run our web project. Let us look at steps to create Web project :- Step 1 :- Click on … Read more

Parameterized Constructor in Java

Parameterized constructor can be made by the user if they want to assign some value to instance variable at time of creation of object. Parameterized constructors are also a good way to perform some operations that are to be performed at the start such as Database connections, pre-checks on values of instance variables or certain … Read more

Default Constructor in Java

Default constructor is automatically created by the compiler if we do not declare any constructor. The features of default constructor are : Let us look at an example to understand default constructor: Output As you can see in the above code we have not created any constructor in our class TestA, still instance variables age … Read more

Mirrored Right Angle Triangle Pattern

Let us see a favorite pattern of interviewers – Mirrored Right Angle Triangle. This is one of the basic pattern to practice logic building before you try competitive programming. Output Understand the logic carefully and try to make other patterns yourself. To debug code easily refer the article RIGHT WAY TO DEBUG CODE USING PEN … Read more

Right way to debug code using pen and paper

Anyone who is starting to code, the most difficult thing they face is to understand others code. If the code has 2-3 nested loops then even an experienced persons face a lot of problem. Understanding someone else’s code or code present on internet is very frustrating and takes a lot of time. So my advice … Read more