Top 50+ JIRA Interview Questions and Answers 2025


The following article presents the frequently asked JIRA interview questions and answers for both freshers and experienced. If you are going to attend an interview for QA professional or software testing, then these interview questions and answers will be helpful to learn. JIRA is a popular software testing tool that is useful in development and project management. You can ace the interview by reviewing these Jira testing interview questions and answers.

Let us discuss the top JIRA Interview Questions and Answers. 

Most Frequently Asked JIRA Interview Questions and Answers

1. What Is Jira?

Ans. JIRA is a popular software testing tool and an issue-tracking product from Atlassian, an Australian IT company. It is also a famous bug-tracking tool that tracks various issues in project management. This tool is popularly used in software development and testing projects. Also, JIRA covers multiple reporting tools that help manage projects related to development and track many potential bugs and software errors. 

Become a master of Jira by going through this HKR Jira Course!

[ Related Article: Jira Course ]

2. Why JIRA is used?

Ans. JIRA is popularly known as a software testing, issue tracking, and project management tool. JIRA can be used for different purposes in software development and project tracking. Here are some benefits of using the JIRA tool:

  • It helps in tracking the progress of various IT projects. 
  • This tool is platform-independent.
  • Jira can run on different Operating Systems with compatibility. 
  • It is easy to customize the platform as per user needs.
  • Further, it is a very user-friendly and cost-efficient tool.
  • It also helps to automate various workflows.

3. Explain the JIRA workflow?

Ans. JIRA workflow is a group of various software activities helpful in tracking the different transitions of a bug or issue in the SDLC process. Transitions connect the two statuses when an issue transits from one status to another. Hence, the status mentions the nature of work performed by the tester. However, the three essential stages of JIRA workflow are as follows:

  • Open/Started
  • Work in Progress
  • Close/Finally done.

4. What are the important differences between JIRA and Bugzilla?

Ans. The following are the key differences between JIRA and Bugzilla:

  • JIRA is a popular commercial tool, whereas Bugzilla is an open-source tool.
  • Bugzilla is mainly a bug-tracking tool, but JIRA is a complete project management and issue-tracking tool. 
  • JIRA is a highly intuitive and user-friendly tool, but Bugzilla needs a more interactive UI.
  • JIRA can be easily customizable per various business needs, but Bugzilla has limitations. 
  • Bugzilla cannot integrate with other tools seamlessly, whereas JIRA can easily integrate with other Atlassian tools.
  • JIRA has no advanced search options feature, but Bugzilla has such an option. 

5. Is it possible to access the JIRA cloud site through a mobile device?

Ans. Yes, using the JIRA cloud site URL, you can access the JIRA cloud site through your mobile’s web browser.

6. Can JIRA be used for test case management?

Ans. As far as we know, the server’s test case management functionality was not well-integrated into the JIRA architecture. The test case management system will be set up in two alternative ways to support the test case management system. After that, customers have the following two options: they may either modify the built-in JIRA components to conform to the requirements of the test case management system, or they can utilize the add-ons that the parent business offers.

7. Explain labeling and linking issues in JIRA?

Ans.

Labeling is also known as “tagging,” which allows you to categorize an issue as information that can be allocated to any component later. You can find this issue through labels. 

You can use this functionality to establish a relationship between two issues on separate or identical JIRA servers.

8. List the types of reports generated in JIRA?

Ans. JIRA produces the following reports on the issues based on versions, projects, etc. Here are a few examples of the various reports:

  • Pie Chart Report
  • Average Age Report
  • Resolution Time Report
  • Recently created issue report
  • User-defined Workload report
  • Pie-chart workload report
  • Created issue Vs. Resolved issue report
  • Project Time-Tracking report
  • Single-level group report

9. What is cloning an issue in JIRA?

Ans. In JIRA, cloning an issue enables users to produce a copy of the actual/original issue. It allows multiple teams or developers to work on a single issue. Further, a clone issue can also be connected to the actual issue, containing the following information. 

  • Summary details
  • Assignee
  • Work environment info
  • Security info
  • Description Details
  • Issue type
  • Reporter 
  • Priority 
  • Component detail

10. How does a service desk work in JIRA?

Ans. A service desk plays a key role in a company’s IT infrastructure and is a central point of contact. A service desk agent works to address customer issues, inquiries, and technical support requirements. The service desk aims to provide seamless delivery of various IT services, improve efficiency, and increase user satisfaction.

The process typically starts with a request submission by a user through a web portal, email, or phone call. In the JIRA service desk line, they find the request sent and start action against it. Further, the service desks also follow IT best practices to resolve customer queries. Thus, they complete the customer requests and make them satisfied. 

If you want to Explore more about Jira? then read our updated article – Jira Tutorial

Jira Training Certification

  • Master Your Craft
  • Lifetime LMS & Faculty Access
  • 24/7 online expert support
  • Real-world & Project Based Learning

11. How are reports generated in JIRA?

Ans. The below-listed steps how to produce a report in JIRA:

  • Select the desired JIRA dashboard -> click reports -> a variety of report kinds are now available.
  • Go to “Switch report” to view an alternative report.
  • To view other report options, click on the report.

12. What is an issue in JIRA?

Ans. In JIRA, an issue refers to anything that is a software bug or a task related to a project. For the JIRA software projects, issues are the primary building blocks. However, multiple companies use JIRA to track issues occurring during the software development project. 

13. Explain how an issue is created in JIRA?

Ans. The following is the process to follow during the creation of an issue within JIRA:

  • To open the “create issue” dialog box, hit the “create” button at the top of the screen.
  • Next, choose the relevant project and issue category from the “Create Issue” box options list.
  • Type the “Summary” and fill in the appropriate fields. 
  • Before producing the subsequent issue on the dashboard, confirm that you have correctly filled out all the fields.
  • Click the “Create” button if all the information is correct.

14. What are the color indicators in JIRA and mention their significances?

Ans. In JIRA, the following are the primary color indicators:

  • Blue color: The blue color indicates the actual evaluated time.
  • Green color: The time spent or logging details are indicated by this color.

Orange color: This color indicates the balance estimated time.

15. What is a Kanban board in JIRA?

Ans: JIRA Kanban board  refers to the board built through DIY options or using the Kanban preset. Moreover, this board is perfect for people only interested in managing and restricting their ongoing work time.

16. What is a SCRUM board in JIRA?

Ans. In JIRA, the Scrum board is most useful for IT teams who want to work in Sprints or phases. 

Further, this board aids in bringing all the teams together to work toward a single goal. Moreover, Scrum is quite helpful in the software development process.

17. How to create a burndown and burn up charts in JIRA?

Ans

Steps for creating a Burn Up chart:

  • Visit the official JIRA website.
  • Click on the project you are currently working on.
  • Select the reports icon, which will display on the left.
  • The Burn-up chart option needs to be chosen here.

Steps for creating a Burndown chart:

  • Visit the official JIRA website.
  • Click on the project you are currently working on.
  • Select the reports icon that displays on the panel’s left side.
  • Now, choose the burndown option from the drop-down menu of reports.

18. Define the components used in JIRA?

Ans. The components in JIRA are simply project divisions used to divide software project issues into more manageable chunks.

19. Define the validator in JIRA?

Ans. Before the transition runs in JIRA, the validator verifies that the input provided to the transition, whether the transition is valid. Moreover, the issue won’t progress to the target state of change if the validator fails.

Become a master of Jira by going through this HKR Jira Training!

20. How is the security setting helpful in JIRA?

Ans. By using the JIRA security setting, only those individuals who have been granted permission to work on issues can access the issue. Every issue’s security level can be adjusted during creation or change.

21. How can you modify multiple bulk issues?

Ans. Use the bulk change choices -> tool menu -> choose all the issues on the current page that can now be used for the bulk activities to alter any bulk issue.

You will receive the following information when you carry out a bulk operation, for example:

  • Workflow change 
  • Remove
  • Move
  • Modify

22. What are some of the popular add–on for JIRA?

  • Ans. 

    Suites utilities for JIRA

  • Script Runner
  • Zephyr for JIRA
  • JIRA toolkits
  • REST API browser
  • JIRA portfolio
  • MISC workflow extensions
  • Tempo timesheets

23. Define schemas in JIRA?

Ans. In JIRA configuration systems, Schemes are essential components. However, these are a group of configured settings that one or more Jira projects may use in the future. Further, there are seven different kinds of schemas: issue type schemes, permission schemas, and notification schemas. 

24. In JIRA workflow, is it possible to transition an issue back to its previous status?

Ans. A problem cannot be changed back to its original state. However, you can complete this task using the “On hold” option in an emergency.

25. For any agile project, how user stories in JIRA are created?

Ans. The steps below will walk you through creating user stories in JIRA: issue type -> epic and types of issues -> then the related agile stories. To do this, navigate to the “create issue” page, click the “configure fields,” and then move to “epic link.”

Alternatively, the user can build subtasks under the main user story by creating a product backlog feature.

26. What is the JIRA dashboard?

Ans: JIRA dashboard is an online website with various tools and features. They are easy to use while working on any issue.

27. What is the use of move issue wizard in JIRA?

Ans. Users can specify the JIRA project through the move issue wizard in JIRA. Hence, it allows users to alter any aspect of the issue along with the issue status and the custom field values.

HKR Trainings Logo

Subscribe to our YouTube channel to get new updates..!

28. What is an audit log?

Ans. In JIRA, a user can view all the information on the issues produced and their changes in the audit log.

29. How to add your gadgets in the JIRA dashboard?

Ans. You can follow these steps to add gadgets to the JIRA dashboard:

First, move to the JIRA dashboard and hit the dashboard link. Then, click on the “Add gadgets” option. Next, choose the gadgets you want to add through the gadget wizard.

30. What are the limitations when editing an active workflow?

Ans. Users cannot alter the workflow name and description in an active JIRA workflow.

  • The user cannot remove workflow steps.
  • It is impossible to alter the status-related stages.
  • It is impossible to edit or modify a step ID.

31. Why Use Jira?

Ans: The reason behind using JIRA is

  • Upfront and fair licensing policy
  • Features that is not available elsewhere
  • Get latest update on the progress of projects
  • It run anywhere and recognized with many famous companies
  • Easily extensible and customizable

32. Explain Labelling And Linking Issue In Jira?

Ans: 

Labelling Issue: It enables you to categorize an issue in a more informal way than assigning it to a component or version. You can then search issues according to label.
Linking Issue: This feature enables you to link an association between two issues on either on the same or different JIRA servers.

33. Explain How You Can Share An Issue With Other Users?

Ans. You can email an issue to others by using JIRA’s share feature to share it. Additionally, you can email other JIRA users a link to the problem or include a note of it in the issue’s Comment or Description section.

34. Explain How You Can Disable Mail Notification For Bulk Operations?

Ans. To turn off mail notifications for a specific bulk activity, you must deselect the “Send Notification” button in the bulk operation wizard.

35. What Does An Issue Change History Include?

Ans. The history of issue changes comprises the following:

  • Removal of a comment
  • removing a work log
  • Building or removing an issue link
  • An attached file
  • Modifications to a field of issue

36. Explain What Does The Three Color Indicates Tracking Times Or Duration For An Issue?

Ans. Three colors will be shown to indicate how long the issue has been ongoing:

  • Actual Estimate (Blue): The time initially projected to address the problem
  • Remaining Estimate (Orange): The amount of time needed to finish the problem
  • Time Spent or Logged (Green): The total time invested in fixing the issue so far.

37. Mention Some Of The Popular Add-ons For Jira?

Ans: Some popular add-ons for JIRA include,

  • Suites utilities for JIRA
  • ScriptRunner for JIRA
  • Zephyr for JIRA – Test Management
  • JIRA Toolkit Plugin
  • Atlassian REST API Browser
  • Portfolio for JIRA
  • JIRA Misc Workflow Extensions
  • Tempo Timesheets for JIRA
  • JIRA Charting Plugin

38. Mention What Is Schemes In Jira?

Ans. A key part of JIRA configuration is the schemes. One or more JIRA projects may use these schemes as the group of set-up values. Notification schemes, permission schemes, and issue-type schemes are a few examples. Further, there are seven different kinds of schemes.

  • Screens
  • Permissions
  • Notification
  • Issue types
  • Field configurations
  • Custom fields
  • Workflows

39. Mention Is It Possible To Get Back Up Your Jira Cloud Data?

Ans. You can use the Backup Manager in JIRA to back up your cloud data. However, only one backup file is kept on file at once. New backup files replace the old ones.

40. Mention What Data Can Be Backed Up?

Ans. The following data can be backed up in Jira:

  • Attached files if selected
  • Users and their group settings
  • Issues & Avatars

41. Mention Some Useful Tips On Jira Workflow?

Ans. In JIRA, statuses are the global objects. Any workflow that uses a certain status will have its status changed if its name is altered.

  • To view the appropriate transition labels, hover over a status or transition.
  • In the workflow designer, transitions cannot be copied.
  • It is not possible to make annotations inside the workflow designer.
  • You cannot instantly fix the property issue.editable.

42. Mention What Is The Role Of Validators In Jira?

Ans. Validators play a great role in JIRA software. They check the various inputs used in the transition are valid or not before the execution of transition. In case of failure, there will be no further progress in the issue to transition’s target status.

43. What Is An Event In Jira?

Ans. An event contains information about its state, default template, notification system, workflow transition, and event’s post-function interactions. In JIRA, the events can be divided into System Events and Custom Events. These are JIRA-defined and user-defined events, respectively.

Jira Training Certification

Weekday / Weekend Batches

44. What issues can we not clone in JIRA?

Ans. The following issues can’t be cloned in Jira such as time tracking, comments, and history of an issue.

45. Define JQL.

Ans. JQL refers to JIRA Query Language, which provides many advanced and adaptable methods for identifying a wide range of JIRA issues. Field, operator, keyword, and value are all included in JQL. This language is helpful for developers, managers, testers, business users, etc. 

46. What is meant by JIRA Core?

Ans. An application called JIRA Core provides an adaptable workflow management solution. By offering a framework for automating numerous business processes, it facilitates a company of different tasks and projects into a single, central location. As a result, it increases the team’s total productivity.

47. What elements make up a JIRA Schema?

AnsJIRA Schema includes the following elements:-

  • Issue Types
  • Notifications
  • Screens
  • Permissions
  • Field Configuration
  • Workflows

48. What is meant by Issue Collector?

Ans. Users can use the issue collector to integrate a JIRA feedback form into their website. Generally, a user can open a form by clicking on a trigger tab in the margin of the website’s webpage.

49. Name the Agile methodologies that support JIRA.

Ans. The following Agile methodologies support JIRA: Kanban and Scrum.

50. List the various Issue types in a Scrum project within JIRA.

Ans. The Scrum project in JIRA comes with the following issue forms by default: 

  • Epic 
  • Story 
  • Task 
  • Bug

51. Name the various source control tools that JIRA integrates.

Ans. The different source control applications that are simple to combine with JIRA include the following:-

  • Helix Core
  • Subversions
  • Git 
  • ClearCase 
  • Mercurial

52. How can you schedule an issue in JIRA?

Ans. We can quickly set up issue due dates within JIRA, which makes it easier to monitor, assess, and alert the team about the due date. The fantastic feature of issue scheduling is that it does a secure and comparable date search based on due dates. As a result, scheduling an issue within JIRA with the date field is simple. We can modify the current issue type or create a new one to do this.

53. Name the Post Functions performed after the execution of the transition.

Ans. The following post functions executed after the transition’s execution:

  • Updates to the issue field
  • Adding a remark to an issue
  • Creating events to initiate email notifications
  • Modify the production history of an issue.

50. Mention the ways to ensure data security and privacy in JIRA.

Ans. Any company using JIRA software should prioritize privacy and data security. The following are the security best practices to use in JIRA:

  • Using a firewall.
  • Using a two-factor validation system.
  • Using data encryption.
  • Updating JIRA software.
  • Taking data backup.

Conclusion

After going through these JIRA interview questions and answers, you can feel more confident attending the interview. These questions are compiled with the help of experts in the industry so that you can easily ace the interview of a QA Tester. 

About Author

author-image

As a Senior Writer for HKR Trainings, Sai Manikanth has a great understanding of today’s data-driven environment, which includes key aspects such as Business Intelligence and data management. He manages the task of creating great content in the areas of Digital Marketing, Content Management, Project Management & Methodologies, Product Lifecycle Management Tools. Connect with him on LinkedIn and Twitter.

Upcoming Jira Training Certification Online classes

Batch starts on
27th Jun 2026
Mon – Fri (18 Days)
Weekend
Timings – 10:30 AM IST
Batch starts on
1st Jul 2026
Mon & Tue (5 Days)
Weekday
Timings – 08:30 AM IST
Batch starts on
5th Jul 2026
Mon – Fri (18 Days)
Weekend
Timings – 10:30 AM IST



Source link

Leave a Reply

Subscribe to Our Newsletter

Get our latest articles delivered straight to your inbox. No spam, we promise.

Recent Reviews


Java is a high-level programming language used to build various apps by developers for laptops, game consoles, mobile phones, and other devices. In other words, it is a strongly-typed, general purpose, and object-oriented coding language. 

The following Java Interview Questions and Answers are compiled for you to make you familiar with the types of questions you may encounter in your interview. These questions are useful for basic to medium and advanced level interviews.

Most Frequently Asked Java Interview Questions

What is meant by Java programming?

Ans: Java is a high-level object-oriented coding language developed & released by Sun Microsystems in 1995. Java runs on multiple platforms like Windows, Mac OS, etc.

Name the platforms supported by Java Programming.

Ans: Java language supports multiple platforms like Windows, Mac OS, and the other editions of UNIX/Linux such as HP-Unix, Redhat Linux, Ubuntu, CentOS, and so on.

Why is Java programming Architectural Neutral?

Ans: Java’s compiler produces an object file format that is architecture-neutral. It makes the arranged code to be executable on several processors including a Java runtime system.

Become a Gerrit Certified With HKR. Gerrit Training now

How does Java enable High Performance?

Ans: The language uses a Just-In-Time (JIT) compiler which is an integral part of JVM to enable high and faster performance. JIT compiler turns Java bytecode to speed up the Java application. This is a type of program that includes certain instructions that must be converted into orders that can be sent directly to the processor.

What do mean by a Local Variable?

Ans: Local variables in Java are defined within the body including methods, constructors, or blocks. You can declare and initialize the variable within the same method only. And it will be removed after completion of that method.

Name the five top features of Java programming.

Ans: The top features of Java include Object Oriented, Robust, Portable, Platform Independent, and Multi-threaded.

Define why Java language is considered dynamic?

Ans: Java programming language is considered more dynamic as it is designed to adapt to an evolving environment. Java programs can move a large amount of run-time data. This data is useful to verify and work out access to objects on run-time. Further, it supports dynamic loading of various classes which are loaded on-demand basis.

Name the two Java IDEs.

Ans: Two popular Java IDEs are- Netbeans and Eclipse.

Mention a few Java keywords.

Ans: There are some useful Java keywords such as import, super, finally, for, abstract, byte, case, etc.

: What is meant by an Instance Variable?

Ans: Instance variables are non-static variables defined inside a class but outside any method or block. Moreover, these variables are instantiated or expressed when the class is loaded.

. Define Java Virtual Machine (JVM) and how to consider it as Java’s platform-independent feature?

Ans: When we compile a Java program, it is not compiled into the platform-specific system but rather into platform-independent byte code. This byte code is allocated over the web and converted by JVM which is a specification and a runtime instance, on whatever platform it runs actually.

: Define what is the class?

Ans: A class in a Java program is a basic building block through which individual objects are built. Moreover, a class can include certain fields and methods that explain the object’s (variable’s) behavior.

Wish to make a career in the world of Java? Start with HKR’S  Java Training ! 

: Mention the types of variables that a class can contain.

Ans: A class in Java can contain Local variables, instance variables, and class variables.

: Describe what is an Object?

Ans: An object is a runtime entity and a member of the Java class. It consists of a state and behavior such as a chair, bike, etc. Moreover, the object includes three different features such as state, behavior, and identity. Further, an object can be physical or logical in nature.

: Define a Class Variable.

Ans: These variables are declared within a class, but outside of any method using the static keyword in the Java program.

: What is a Constructor in a Java program?

Ans: A Constructor is a block of several codes which is equal to the method. It is called when a new object or instance of a class is created. Every class in Java consists of a constructor. If we do not clearly define or write a constructor for a class the java compiler then creates a default constructor for the same class.

: What are the three different steps useful to create an Object for a class?

Ans: The creation of an object includes- declaration, instantiation, and initialization.

: Mention the default value of byte data type in the Java program.

Ans: The default byte datatype value in a Java program is 0 (zero).

: Define Singleton class.

Ans: A Singleton class in Java is a design pattern that makes sure that a class should contain only a single object. It controls the number to one but allows the flexibility to build more objects if the condition alters. Moreover, it is useful when a single instance of a class needs to control the actions in the entire execution.

: Name the default values of float and double datatype.

Ans: The following are the default values of float and double data types:- for float the value is 0.0f and for double data type the value is 0.0d.

Java Certification Training

  • Master Your Craft
  • Lifetime LMS & Faculty Access
  • 24/7 online expert support
  • Real-world & Project Based Learning

: What is the use of byte data type?

Ans: A byte data type is useful to save space in large arrays. This is mainly used in the place of integers. But a byte is 4 times smaller than an integer in reality.

: Define the Static variable.

Ans: The static variables have another name: Class variables that are declared with the static keyword in a class but outside of a method, or a block.

: What is an Access Modifier in Java?

Ans: Access modifiers are useful to set access levels for classes, methods, variables, and constructors. Further, these modifiers mention the accessibility or scope of a method or a field.

: How do you define a Protected Access Modifier?

Ans: The protected modifiers’ access level is within and outside the package through the child class in Java. In case, if you don’t build the child class, you can access it from outside the package.

: Why is a String class in Java considered immutable?

Ans: The String class in Java is immutable or cannot be altered as once you create a String object it cannot be changed. Also, you can easily share this between many threads, and is viewed as important for multithreaded programming.

: What is the reason that a StringBuffer is called mutable?

Ans: The String class is viewed as immutable as once created, it cannot be altered. If there is a need to make a lot of changes to Strings of characters then StringBuffer is highly useful.

: Define Exception.

Ans: An exception is a problem or error that occurs at the time of execution of a program. These errors/exceptions are grabbed by handlers located along the thread’s method citation stack.

: Explain Inheritance in Java.

Ans: Inheritance is a type of process where one object obtains another object’s properties. By using inheritance, the data is made viable in a hierarchical order.

: What is meant by Abstraction?

Ans: The term refers to the capability to make a class abstract in object-oriented programming. It minimizes the complexity and helps to improve the system’s maintainability.

: Define Encapsulation.

Ans: It is the technique to integrate code and data into a single unit. Here, we can build a completely encapsulated Java class by ensuring all the data members of the class are private. Java Bean is an example of this type of Java class.

: What is a Local variable and the instance variable?

Ans: A local variable is a variable that can be defined inside a method and the scope of that variable is accessible only to its method but not outside the method. An instance variable is a variable which is defined inside a class and outside a method and the scope of that variable is accessible all throughout the class.

: Why pointers not used in Java?

Ans: Pointers increases the complexity of a program and becomes unsafe. Hence the java code is designed with simplicity by avoiding the pointers that will become contradicting. JVM is responsible for implicit memory allocation, thus in order to avoid direct access to memory by the user,  pointers are discouraged in Java.

: Explain the features in Java.

Ans: The features are.

1. The concepts of OOPs that include

  • Object-oriented
  • Inheritance
  • Encapsulation
  • Polymorphism
  • Abstraction

2. Platform Independent – A single program runs on different platforms without any modifications.

3. High Performance – JIT (Just in Time compiler) enables high performance which converts the bytecode into machine language and then JVM starts the execution.

4. Multi-threading – Thread is a flow of execution. JVM creates a thread that is called the main thread. A user can able to create multiple threads by extending the thread class or by implementing the Runnable interface.

: What are the main concepts of OOPs in Java?

Ans: The concepts of OOPs are:

Inheritance: It is a process by which one class acquires the properties of another class.

Encapsulation: It is a mechanism of wrapping the code and data as a single unit.

Abstraction: It is a methodology for hiding the implementation details and proving only the functionality to the users. 

Polymorphism: It is the ability of a variable, function or object to take multiple forms.

: Explain the difference between Public and Private access specifiers.

Difference between Public and Private access specifiers is as follows:

Public access specifier:

When we declare any variable, class or method with ‘public’, then they can be accessed anywhere. There is no scope restriction for public access modifiers. They can be accessed within the same package and also in other packages.

public class Main {

  public String mailid = "anu.123@gmail.com";

  public int age = 26;

}

class Second {

  public static void main(String[] args) {

    Main myObj = new Main(); 

    System.out.println("mailid: " + myObj.mailid);

    System.out.println("Age: " + myObj.age);

  }

}

Output:

mailid: anu.123@gmail.com

Age: 26

Private access specifier:

When we declare a method or variable as ‘private’, we cannot access them outside that class. It can be accessed only within that declared class.

public class Main {

  private String name = "Anu";

  private String surname = "Wills";

  private int age = 26;

  

  public static void main(String[] args) {

    Main myObj = new Main();

    System.out.println("Name: " + myObj.name + " " + myObj.surname);

    System.out.println("Age: " + myObj.age);

  }

}

Output:

Name: Anu Wills

Age: 26

. Explain the difference between Default and Protected access specifiers.

Difference between Default and Protected access specifiers is as follows:

Default access specifier: 

When an access specifier is not specified for a class, data member or method, then by default it will have a ‘default’ access modifier. They can be accessible within the same package. It cannot be accessed in other packages.

class Person {

  String mailid = "anu.123@gmail.com";

  int age = 26;

  public static void main(String[] args) {

    Person myObj = new Person();

    System.out.println("mailid: " + myObj.mailid);

    System.out.println("Age: " + myObj.age);

  }

}

Output:

mailid: anu.123@gmail.com

Age: 26

Protected access specifier:  Whenever we specify a data member or a method with ‘protected’, then they can be accessed within the same class and same package. Classes or interfaces cannot be declared as protected in Java.

class Person {

 protected String name = "Anu";

  protected int age = 26;

}

class Student extends Person {

  private int graduatedin = 2016;

  public static void main(String[] args) {

    Student myObj = new Student();

    System.out.println("Name: " + myObj.name);

    System.out.println("Age: " + myObj.age);

    System.out.println("Graduation Year: " + myObj.graduatedin);

  }

}

Output:
Name: Anu

Age: 26

Graduation Year: 2016

: What is the difference between the break and continue?

Ans: 

Break:

  • It can be used in switch and loop statements such as for, while, do-while.
  • The moment the break is executed it will terminate the switch or loop statements.
  • It immediately terminates the innermost enclosing loop or switch statements.

Example:

for (int i = 0; i < 10; i++)

{

if (i == 5)

{

break;

}

System.out.println(i);

}

Continue: 

  • It can be used only in loops statements.
  • It will not terminate the loop but it causes the loop to jump to the next iteration.
  • A continue within a loop nested with a switch will cause the next loop iteration to execute

Example:

for (int i = 0; i < 10; i++)

{

if(i == 5)

{

continue;

}

System.out.println(i);

}

: What is the final keyword in Java?

Ans: The final keyword is used as a non-access modifier. A final variable is used in different contexts of a class, method and a variable.

  • Final variable: Once if any variable is assigned with a final keyword than that value of that variable cannot be modified and remains unchanging. If in case the final variable is assigned without any value than by using only the class constructor a value can be assigned to it.
  • Final method: When the method is declared as final then it cannot be overridden by the inheriting class.
  • Final class: When a class is declared as a final then it cannot be extended by any sub-class but it can able to extend the other class.

: What is Constructor?

Ans: 

  • A constructor is a method which has the same name as that of a class.
  • When a new object is created in a class than the constructor is invoked by that corresponding class.
  • If a user doesn’t create a constructor implicitly than a default constructor is created.
  • A constructor can be overloaded.
  • If a user creates a parameterized constructor than that user should create another constructor without any parameters explicitly.

: What is the difference between methods and constructors in Java?

Ans: 

Methods:

  • Methods are used to represent the behaviour of an object.
  • Should have the return type.
  • Methods must be invoked explicitly.
  • The compiler doesn’t provide any default method.
  • Method name may be or may not be the same as a class name.

Constructors:

  • Constructors are used in initializing the state of an object.
  • The constructor method will not have any return type.
  • The methods are invoked implicitly.
  • The compiler provides a default constructor when a class doesn’t contain any.
  • The method name of a constructor will be the same as a class name.

: What is the difference between Abstract class and Interface?

Ans: 

Abstract class:

  • Abstract classes have a default constructor that is called when a concrete subclass is instantiated.
  • Contains both Abstract and Non-abstract methods.
  • A class that extends the abstract class doesn’t need the implementation of all methods, only abstract methods are implemented in the concrete sub-class.
  • Abstract class contains instance variables.

Interface: 

  • The interfaces have no constructors and couldn’t be instantiated.
  • Only the abstract methods alone must be declared.
  • The classes which implement the interface should provide the implementation for all methods.
  • Interfaces contain only constants.

: Can you override a private or static method in java?

Ans: No. You cannot override private or static methods. If a similar method is created with the same return type and the same method arguments in child class then it hides the superclass method which is also called as method hiding. Similarly, the private method is not overridable in sub-class which is not accessible there. You can create another private method with the same name in the child class as in this example.

Example:

class Base_class {

private static void display() {

System.out.println("Static or class method from Base class");

}

public void print() {

System.out.println("Non-static or instance method from Base class");

}

class Derived_class extends Base_class {

private static void display() {

System.out.println("Static or class method from Derived class");

}

public void print() {

System.out.println("Non-static or instance method from Derived class");

}

public class test {

public static void main(String args[])

{

Base obj= new Derived_class();

obj.display();

obj.print();

}

}

: What is the difference between Error and Exception?

Ans: An error is an unrecoverable condition that occurs at runtime such as “OutofMemory” error.  These JVM errors cannot be repaired at runtime. Even though such kind of errors is caught in the catch block, the application execution will be halted and becomes unrecoverable. 

The exceptions are the conditions which applied for tracking the bad input to human error while executing a program. For example “FileNotFoundException” is an exception which is thrown to handle if the specified file doesn’t exist. 

: What is the difference between Serialization and Deserialization in Java?

Ans:

Serialization:

  • The Serialization is a process of converting the objects into a byte stream.
  • An object is serialized by writing it an ObjectOutputStream.

Deserialization:

  • The Deserialization is an exact opposite of what a Serialization will process where we can get the objects back from the byte stream.
  • An object is deserialized by reading it from an ObjectInputStream.

: When to use Runnable interface and Thread class in Java?

Ans: When a class is needed for extending some other classes other than a thread then it is recommended to implement the runnable interface because java can extend only one class. If there is no need for extending any class than at the time it is recommended to extend the properties of a thread class.

HKR Trainings Logo

Subscribe to our YouTube channel to get new updates..!

: Explain the difference between HashMap and HashTable.

Ans: 

HashMap:

  • The methods in HashMap are not synchronized.
  • HashMap will not have thread-safety.
  • The iterator will be used for iterating the values.
  • Allows one null key and multiple null values.
  • Performs high compare to the HashTable.

HashTable:

  • The key methods in HashTable are synchronized.
  • HashTable will have thread-safety.
  • The enumerator will be used for iterating the values.
  • Doesn’t allow anything which is null.
  • Performs low compare to the HashMap.

: What is the difference between HashSet and Treeset?

Ans: 

HashSet:

  • The elements which are inserted into HashSet will be in random order.
  • HashSet can store null objects.
  • Performance is fast.

TreeSet:

  • The elements in a TreeSet will be maintained in sorted order.
  • TreeSet cannot store null objects.
  • Performance is slow.

: What are Collections in java?

Ans: Collections are the framework which is designed to store and manipulate the objects. The collections perform the following operations.

  • Searching
  • Sorting
  • Insertion
    Deletion
  • Manipulation.

A group of objects are known as collections. All the collection classes and interfaces are available in the util package.

: What is the difference between Ordered and Sorted in collections?

Ans: Ordered collections are values which are stored in a collection that is based on the values that are added to the collection. These values can be iterated from the collection in a specific order.

The sorted collection mechanism is applied internally or externally such that the group of objects sorted in a particular collection is based on the properties of objects.

: What is the difference between Array list and Vector in Java?

Ans: 

ArrayList:

  • An Array List is not synchronized.
  • It performs fast as it’s non-synchronised.
  • The size of an array increases by 50% when an element is inserted into an Array List.
  • Array List will not define the size of increment.
  • Array List uses Iterator only for traversing.

Vector:

  • A Vector is synchronized.
  • It performs slow as it’s thread-safe.
  • By default, vector doubles the size of an array.
  • Vector will define the size of increment.
  • Vector uses both Enumerator and Iterator for traversing.

: What is the difference between Array and ArrayList?

Ans: 

Array:

  • Arrays will not contain the values of different data types.
  • Size of an Array is defined during declaration.
  • To add data index is specified in Arrays.
  • Arrays are not parameterized type.
  • Arrays contain primitive data types as well as objects.

ArrayList:

  • ArrayList contains the values of different data types.
  • Size of ArrayList changes dynamically.
  • There is no need for specifying indexes in ArrayList.
  • ArrayLists are parameterized type. 
  • Primitive data types are not allowed in ArrayList but contain only objects.

: What is the difference between Get and Post methods in Servlet?

Ans:

Get method:

  • Limited amount of data can be sent because the data is sent in the header section.
  • The data is exposed to a URL bar and so it is not secured.
  • It can be bookmarked.
  • It is Idempotent.
  • It is used more efficiently than a Post method.

Post method:

  • A large amount of data can be sent because the data is sent in the body section.
  • The data is secured since it is not exposed to a URL bar. 
  • It cannot be bookmarked.
  • It is not Idempotent.
  • It is used with less efficiency. 

: What are the different methods of session management in Servlets?

Ans: Session is a state of a conversation between client and server and consists of multiple requests and responses. As HTTP and Web Server are stateless, the session maintains the unique information as session-id that is passed between client and server in every request and response. The methods of session management in servlets are:

  1. User Authentication
  2. HTML Hidden Field
  3. Cookies
  4. URL Rewriting
  5. Session Management API

: What is a JDBC Driver?

Ans: JDBC is a software component which enables the application to interact with the database. There are mainly four types of JDBC drivers.

  1. JDBC-ODBC bridge driver
  2. Native-API driver (partially java driver)
  3. Network Protocol driver (fully java driver)
  4. Thin driver (fully java driver)

: What are the JDBC statements?

Ans: These are the statements which are used to send SQL commands to the database and also retrieve the data from the database. The methods like execute(), executeUpdate() and executeQuery() are provided by JDBC to interact with the database.

JDBC supports three types of statements.

  1. Statement: It is a general statement which is used to access the database and execute static SQL query at runtime.
  2. PreparedStatement: It is used in providing the input parameters to the query during the execution.
  3. CallableStatement: It is used for accessing the database stored procedures and helps in accepting runtime parameters.

: What are the lifecycle methods for a JSP?

Ans: There are three lifecycle methods in JSP.

  • public void jspInit() – It is invoked only once which is same as that of init() method used in servlet.
  • public void _jspService(ServletRequest request, ServletResponse response) throws ServletException, IOException – It is invoked at each request which is same as that of service() method used in servlet.
  • public void jspDestroy() – It is invoked only once which is same as that of destroy() method used in servlet.

. How is JSP better than a Servlet Technology?

Ans: JSP is a technology of the server’s side programming with simple content generation. JSP’s are document-centric while Servlets are programs. A JSP page contains the fragments of java programming code which executes and instantiates Java classes. However, they occur inside an HTML template file. It provides the framework for the development of a Web Application.

. What is Synchronization?

Ans: Synchronization is about handling only one thread for accessing a block of code at a time. While multiple threads access the block of code then there are chances for inaccurate results, in the end, to avoid this the synchronization is provided for the sensitive block of code. The keyword “synchronized” means that a thread requires a key to access the synchronized code.

It locks as per object. Each Java object has a lock which has only one key. A thread can access a synchronized method only if the thread can get a key to the objects to lock. Towards this, the “Synchronization” keyword will be used.

Example:

public class ExampleThread implements Runnable{

 public static void main (String[] args){

 Thread t = new Thread ();

 t.start ();

 }

 public void run(){

 synchronized(object){

 {

 }

}

. Name the different modules of Spring framework.

Ans: The modules of spring framework include.

  • Spring Context – for dependency injection.
  • Spring Web Module – for creating web applications.
  • Spring AOP – for aspect-oriented programming.
  • Spring ORM – for ORM tools support such as Hibernate
  • Spring DAO – for database operations using DAO pattern
  • Spring JDBC – for JDBC and DataSource support.
  • Spring MVC – Model-View-Controller implementation for creating web applications, web services etc.

. Explain the role of DispatcherServlet and ContextLoaderListner.

Ans: Dispatcher Servlet is a front controller in Spring MVC application which loads the spring bean configuration file and initializes all beans which are configured. By enabling the annotations it allows scanning the packages to configure any bean annotated with @Component, @Controller, @Repository or @Service annotations.

ContextLoaderListner is a listener that can start and shut the “WebApplicationContext” in spring root. Its main function ties the lifecycle of Application Context to the lifecycle of the ServletContext and automating the creation of ApplicationContext.

Java Certification Training

Weekday / Weekend Batches

About Author

author-image

As a content writer at HKR trainings, I deliver content on various technologies. I hold my graduation degree in Information technology. I am passionate about helping people understand technology-related content through my easily digestible content. My writings include Data Science, Machine Learning, Artificial Intelligence, Python, Salesforce, Servicenow and etc.

Upcoming Java Certification Training Online classes

Batch starts on
28th Jun 2026
Mon – Fri (18 Days)
Weekend
Timings – 10:30 AM IST
Batch starts on
2nd Jul 2026
Mon & Tue (5 Days)
Weekday
Timings – 08:30 AM IST
Batch starts on
6th Jul 2026
Mon & Tue (5 Days)
Weekday
Timings – 08:30 AM IST



Source link