i
HCLTech
Work with us
Filter interviews by
The 'extends' keyword in Java is used for inheritance, allowing a class to inherit properties and methods from another class.
Used in class declarations to create a subclass.
Syntax: 'class SubClass extends SuperClass {}'
Allows code reuse and establishes an 'is-a' relationship.
Example: 'class Dog extends Animal {}' means Dog is an Animal.
Can only extend one class (single inheritance) in Java.
Pointer to constant is a pointer that points to a constant value, meaning the value cannot be changed through the pointer.
Pointer to constant is declared using 'const' keyword before the data type.
The value pointed to by a pointer to constant cannot be modified.
Example: const int *ptr; // Pointer to constant integer
A const pointer is a pointer that points to a constant value and cannot be used to modify the value it points to.
A const pointer is declared using the 'const' keyword before the pointer type.
Example: const int *ptr; // pointer to a constant integer value
The value pointed to by a const pointer cannot be modified.
Example: *ptr = 10; // This will result in a compilation error
The while loop executes a block of code as long as the specified condition is true, while the do while loop executes the block of code once before checking the condition.
While loop syntax: while (condition) { // code block to be executed }
Do while loop syntax: do { // code block to be executed } while (condition);
The do while loop will always execute the code block at least once, even if the condition is false.
OOPs in Java refers to Object-Oriented Programming concepts like classes, objects, inheritance, polymorphism, and encapsulation. Looping in Java refers to repeating a block of code multiple times using loops like for, while, and do-while.
OOPs concepts in Java include classes, objects, inheritance, polymorphism, and encapsulation.
Looping in Java can be achieved using for, while, and do-while loops.
Example: for(int ...
OOP concepts in Java include encapsulation, inheritance, polymorphism, and abstraction, forming the foundation of object-oriented programming.
Encapsulation: Bundling data and methods in a class. Example: class 'Car' with attributes like 'color' and methods like 'drive()'.
Inheritance: Mechanism to create a new class from an existing class. Example: 'Sedan' class inherits from 'Car' class.
Polymorphism: Ability to ta...
A const pointer is a pointer that points to a constant value and cannot be used to modify the value it points to.
A const pointer is declared using the 'const' keyword before the pointer type.
Example: const int *ptr; // pointer to a constant integer value
The value pointed to by a const pointer cannot be modified.
Example: *ptr = 10; // This will result in a compilation error
Pointer to constant is a pointer that points to a constant value, meaning the value cannot be changed through the pointer.
Pointer to constant is declared using 'const' keyword before the data type.
The value pointed to by a pointer to constant cannot be modified.
Example: const int *ptr; // Pointer to constant integer
Pointers full depth question and programs
I applied via Indeed and was interviewed in Jun 2024. There were 2 interview rounds.
They will give assignment with video explanation.
Question based on logical reasoning problem solving coding decoding and other
OOP concepts in Java include encapsulation, inheritance, polymorphism, and abstraction, forming the foundation of object-oriented programming.
Encapsulation: Bundling data and methods in a class. Example: class 'Car' with attributes like 'color' and methods like 'drive()'.
Inheritance: Mechanism to create a new class from an existing class. Example: 'Sedan' class inherits from 'Car' class.
Polymorphism: Ability to take ma...
The 'extends' keyword in Java is used for inheritance, allowing a class to inherit properties and methods from another class.
Used in class declarations to create a subclass.
Syntax: 'class SubClass extends SuperClass {}'
Allows code reuse and establishes an 'is-a' relationship.
Example: 'class Dog extends Animal {}' means Dog is an Animal.
Can only extend one class (single inheritance) in Java.
I applied via Approached by Company and was interviewed in Jun 2024. There was 1 interview round.
I was inquired about Java programming and SQL queries.
I applied via Campus Placement and was interviewed in Sep 2022. There were 3 interview rounds.
Around 20 ppl participated out of which 7 were shortlisted from each batch.just be cofident
I applied via Campus Placement and was interviewed in Aug 2022. There were 4 interview rounds.
Similar to all company exams have aptitude and some coding questions
Discussed projects and skills listed on my resume, showcasing my technical abilities and problem-solving experience.
Developed a web application using React and Node.js, improving user engagement by 30%.
Implemented RESTful APIs for data retrieval, enhancing application performance.
Collaborated in a team project using Agile methodologies, leading to timely delivery of features.
Contributed to open-source projects, gaining...
I applied via Campus Placement and was interviewed before Oct 2022. There were 3 interview rounds.
Reasoning test , logical reasoning
OOPs in Java refers to Object-Oriented Programming concepts like classes, objects, inheritance, polymorphism, and encapsulation. Looping in Java refers to repeating a block of code multiple times using loops like for, while, and do-while.
OOPs concepts in Java include classes, objects, inheritance, polymorphism, and encapsulation.
Looping in Java can be achieved using for, while, and do-while loops.
Example: for(int i=0; ...
The while loop executes a block of code as long as the specified condition is true, while the do while loop executes the block of code once before checking the condition.
While loop syntax: while (condition) { // code block to be executed }
Do while loop syntax: do { // code block to be executed } while (condition);
The do while loop will always execute the code block at least once, even if the condition is false.
What people are saying about HCLTech
based on 9 interview experiences
Difficulty level
Duration
based on 34 reviews
Rating in categories
Software Engineer
24.8k
salaries
| ₹1.9 L/yr - ₹8 L/yr |
Technical Lead
22.8k
salaries
| ₹7 L/yr - ₹29 L/yr |
Senior Software Engineer
16.8k
salaries
| ₹4.5 L/yr - ₹17.5 L/yr |
Lead Engineer
16.4k
salaries
| ₹4.1 L/yr - ₹14 L/yr |
Analyst
15.7k
salaries
| ₹0.8 L/yr - ₹6.5 L/yr |
TCS
Wipro
Accenture
Cognizant