Practice coding MCQs, read bite-sized articles, and grab ready-to-use code snippets.
Learn object-oriented programming by building one program, a parking lot, in five steps. Every step has the full Java and C# code, a practice task and its solution.
5 articles
A 38-step Java interview path for freshers: the language core, OOP, collections, modern Java and streams, concurrency and the JVM, JDBC, Spring Boot and testing, then 35 coding problems and the top 50 questions.
20 articles · 4 quizzes · 14 snippets
A complete, ordered C# and .NET interview path for freshers: a 30-day roadmap, language fundamentals, OOP, collections and LINQ, exceptions, memory, async, DI and SOLID, four quizzes, 30 coding problems and the 50 most-asked questions with answers.
17 articles · 4 quizzes · 10 snippets
Java Interview Quiz: Fundamentals, Strings and OOP
10 questions
Java Interview Quiz: Collections, Generics and Exceptions
10 questions
Java Interview Quiz: Modern Java, Streams and Concurrency
10 questions
Java Interview Quiz: JVM, JDBC, Spring and Coding
10 questions
C# Interview Quiz: Types, Strings and OOP
10 questions
Part 1 of 5 of the OOPS! course: build a Parking Lot in Java and C#, with the full code, a practice task and its solution. You will: Find the classes in a problem: nouns become classes, details become fields, verbs become methods. Write a class with fields and a constructor, and create objects with new. Overload a constructor and chain it with this(...). Give one object a reference to another (a ParkingSpot holds a Vehicle).
Part 2 of 5 of the OOPS! course: build a Parking Lot in Java and C#, with the full code, a practice task and its solution. You will: Make fields private and check every value in the constructor. Read data through getters (Java) or read-only properties (C#), with no setters. Let methods guard their own rules: park() refuses a taken spot, leave() never crashes. The three uses of this, and static: one ticket counter shared by the whole class.
Part 3 of 5 of the OOPS! course: build a Parking Lot in Java and C#, with the full code, a practice task and its solution. You will: Turn Vehicle into a parent class, with Car and Bike as child classes (extends in Java, : in C#). Call the parent's constructor first: super(...) in Java, : base(...) in C#. Use the IS-A test, and keep fields private, or protected for child classes. Remove the type check: each kind of vehicle passes its own rate to the parent.
Two classic warm-up problems: reverse a string in place with two pointers, and test a palindrome while ignoring case and punctuation.
Count how often each character appears with Map of Character to Integer and merge, then print the most frequent first.
A short program that shows which strings share the pooled object, which are new objects, and what intern() does.