Premium Employer

HCLTech

3.5
based on 34.4k Reviews
Filter interviews by

Taj Techno Interview Questions and Answers

Updated 29 Apr 2024
Popular Designations

Q1. How to run java program using command line?

Ans.

To run a Java program using command line, use the 'java' command followed by the name of the class containing the main method.

  • Navigate to the directory containing the .class file

  • Type 'java' followed by the name of the class containing the main method

  • Include any necessary command line arguments after the class name

  • Press enter to run the program

  • Example: java MyProgram arg1 arg2

Add your answer

Q2. What is classloader? It's types

Ans.

Classloader is a part of JVM that loads classes into memory. It has three types: Bootstrap, Extension, and Application.

  • Classloader loads classes into memory when they are needed by the program

  • Bootstrap classloader loads core Java classes from the JDK's rt.jar file

  • Extension classloader loads classes from the JDK's lib/ext directory

  • Application classloader loads classes from the classpath of the application

  • Classloader follows delegation model to load classes

Add your answer

Q3. Difference between Hashmap and Hashtable

Ans.

Hashmap and Hashtable are both used to store key-value pairs, but Hashtable is synchronized and slower than Hashmap.

  • Hashmap is not synchronized and allows null keys/values.

  • Hashtable is synchronized and does not allow null keys/values.

  • Hashmap is faster than Hashtable.

  • Hashmap is preferred for non-threaded applications.

  • Hashtable is preferred for threaded applications.

  • Example: HashMap map = new HashMap<>();

  • Example: Hashtable table = new Hashtable<>();

Add your answer

Q4. Explain Internal working of Hashmap

Ans.

Hashmap is a data structure that stores key-value pairs and uses hashing to retrieve values quickly.

  • Hashmap uses an array to store the key-value pairs

  • The key is hashed to find the index in the array where the value is stored

  • If two keys hash to the same index, a linked list is used to store multiple values

  • Hashmap uses load factor to determine when to resize the array

  • Hashmap provides constant time complexity for insertion, deletion, and retrieval

Add your answer
Discover Taj Techno interview dos and don'ts from real experiences

Q5. What is defect?

Ans.

A defect is an error or flaw in a software application that causes it to behave unexpectedly or not as intended.

  • Defects can be caused by coding errors, design flaws, or environmental factors.

  • Defects can lead to system crashes, data corruption, or security vulnerabilities.

  • Examples of defects include syntax errors, logic errors, and performance issues.

  • Defects can be identified through testing, debugging, and code reviews.

Add your answer

Q6. Single ton design pattern

Ans.

Singleton design pattern ensures a class has only one instance and provides a global point of access to it.

  • Ensures a class has only one instance

  • Provides a global point of access to that instance

  • Commonly used in scenarios where only one instance of a class is needed, such as database connections or configuration settings

Add your answer
Contribute & help others!
Write a review
Share interview
Contribute salary
Add office photos

Interview Process at Taj Techno

based on 5 interviews in the last 1 year
1 Interview rounds
Technical Round
View more
Interview Tips & Stories
Ace your next interview with expert advice and inspiring stories

Top Senior Developer Interview Questions from Similar Companies

3.7
 • 10 Interview Questions
View all
Share an Interview
Stay ahead in your career. Get AmbitionBox app
qr-code
Helping over 1 Crore job seekers every month in choosing their right fit company
70 Lakh+

Reviews

5 Lakh+

Interviews

4 Crore+

Salaries

1 Cr+

Users/Month

Contribute to help millions
Get AmbitionBox app

Made with ❤️ in India. Trademarks belong to their respective owners. All rights reserved © 2024 Info Edge (India) Ltd.

Follow us
  • Youtube
  • Instagram
  • LinkedIn
  • Facebook
  • Twitter