TCS
More Supermarket Interview Questions and Answers
Q1. Percentage in technical subjects arw checeked
Yes, percentage in technical subjects is checked for Junior Engineer position.
Technical subjects are a crucial part of the Junior Engineer role.
The percentage in technical subjects is checked to assess the candidate's knowledge and understanding of the subject.
The weightage given to technical subjects may vary depending on the company and job profile.
Candidates should focus on scoring well in technical subjects to increase their chances of getting selected.
For example, if the...read more
Q2. what is diff between array and arraylist
Array is a fixed-size data structure while ArrayList is a dynamic-size data structure in Java.
Array is a fixed-size collection of elements of the same data type, while ArrayList is a dynamic-size collection that can grow or shrink as needed.
Arrays can store primitive data types and objects, while ArrayList can only store objects.
Arrays require a specified size at the time of creation, while ArrayList can dynamically resize itself.
Arrays use square brackets [] for declaration,...read more
Q3. what is spring boot ?
Spring Boot is a Java-based framework used to create stand-alone, production-grade Spring-based Applications.
Spring Boot simplifies the process of developing and deploying Spring applications.
It provides a set of pre-configured tools and conventions to get started quickly.
Spring Boot eliminates the need for manual configuration and boilerplate code.
It includes embedded servers like Tomcat, Jetty, or Undertow for easy deployment.
Spring Boot allows for easy integration with oth...read more
Q4. what is constructor?
A constructor is a special type of method in a class that is automatically called when an object of that class is created.
Constructors have the same name as the class they belong to
Constructors do not have a return type
Constructors can be used to initialize the object's state or perform any necessary setup
Example: public class Car { public Car() { // constructor code here } }
Q5. what is hashmap
HashMap is a data structure that stores key-value pairs and allows for fast retrieval of values based on keys.
HashMap is part of the Java Collections framework.
It uses hashing to store key-value pairs in an array.
Example: HashMap<String, Integer> map = new HashMap<>(); map.put("key1", 1); int value = map.get("key1");
Q6. diff between throw and throws
throw is a keyword used to explicitly throw an exception in Java, while throws is used in method signature to declare the exceptions that can be thrown by the method.
throw is used to throw an exception explicitly in Java code
throws is used in method signature to declare the exceptions that can be thrown by the method
Example: throw new Exception();
Example: public void method() throws Exception {};
More about working at TCS
Top HR Questions asked in More Supermarket
Interview Process at More Supermarket
Top Junior Engineer Interview Questions from Similar Companies
Reviews
Interviews
Salaries
Users/Month