i
Grazitti Interactive
Filter interviews by
I applied via Walk-in
A program to check if a string is a palindrome or not.
A palindrome is a word, phrase, number, or other sequence of characters that reads the same forward and backward.
To check if a string is a palindrome, we can compare the characters from the beginning and end of the string.
If the characters match for all positions, the string is a palindrome.
We can ignore spaces, punctuation, and case sensitivity when checking for pa
A constructor is a special method that is used to initialize objects in a class.
Constructors have the same name as the class they belong to.
They are called automatically when an object is created.
They can be used to set initial values for object properties.
Constructors can be overloaded to accept different parameters.
Example: public class Person { public Person(String name) { this.name = name; } }
Main function is the entry point of a program. It is used to execute the code in the program.
Main function is required in every program written in C, C++, Java, etc.
It is the first function to be executed when the program starts.
It can take command line arguments.
It returns an integer value to the operating system.
Example: int main() { // code to be executed }
Static variables are variables that are associated with a class, not with an instance of the class.
Static variables are declared using the 'static' keyword.
They are initialized only once, at the start of the program.
They can be accessed without creating an instance of the class.
Static variables are shared among all instances of the class.
Examples include a counter variable to keep track of the number of instances creat...
posted on 16 Jul 2024
General aptitude questions moderate level
Moderate difficult round
Software Engineer
239
salaries
| ₹2.4 L/yr - ₹11.6 L/yr |
Senior Software Engineer
97
salaries
| ₹5 L/yr - ₹18.6 L/yr |
Salesforce Developer
73
salaries
| ₹5 L/yr - ₹16 L/yr |
Technical Lead
37
salaries
| ₹8.5 L/yr - ₹25 L/yr |
Marketing Automation Specialist
36
salaries
| ₹3.2 L/yr - ₹10.2 L/yr |
TCS
Infosys
Wipro
HCLTech