Java Revision + TCS IPA Coding Prep
1. Java Fundamentals
Topics to Revise from Scratch:
- Data Types (int, float, char, String, boolean)
- Operators (Arithmetic, Relational, Logical)
- Input using Scanner (import java.util.Scanner)
- Conditional Statements (if, if-else, switch)
- Loops (for, while, do-while)
- Arrays (1D and 2D arrays)
- Strings (methods: length, charAt, substring, etc.)
- Object-Oriented Programming (OOP):
* Class & Object
* Constructor
* Inheritance
* Method Overloading & Overriding
* Abstraction & Interfaces
- Collections (ArrayList, HashMap)
- Exception Handling (try, catch, finally)
2. Common TCS IPA Java Coding Questions
Sample Problems Frequently Asked:
1. Count vowels and consonants in a string.
2. Reverse the words in a sentence.
3. Read N integers and print the sum of even numbers.
4. Create a class Player with name, score, and country. Sort based on score.
5. Find the second largest number in an array.
6. Remove duplicates from a list of strings.
7. Create class Medicine with brand name, price. Sort by price.
8. Check if a string is palindrome.
9. Read date input and convert format.
10. Find average marks of students stored in an array.
These questions often test logic, OOP understanding, and usage of Scanner, arrays, and string
methods.