# JBattle > JBattle is a free, real-time multiplayer quiz app. Create or join a quiz in seconds, challenge friends, and play online quiz games right in your browser — with fresh questions on any topic, live leaderboards, streaks and ELO ranks. No download and no sign-up to start. JBattle runs entirely in the browser at https://jbattle.in. A host opens a private room and shares a code; everyone answers the same timed questions at once while a live leaderboard updates in real time. Questions are generated for any topic you type, and solo modes — the Daily Challenge, the Mastery Forge (adaptive spaced-repetition learning) and mock interviews for technical and HR practice — help you learn as you play. ## Main pages - [JBattle](https://jbattle.in/): Prep for placements on your own terms: DSA, SQL, mock interviews and a 14-day plan. Join the waitlist. - [Live Multiplayer Quiz](https://jbattle.in/multiplayer-quiz): Host a live multiplayer quiz for friends or groups. Share a room code, answer synchronized questions and compete on a live leaderboard. - [Quiz Generator](https://jbattle.in/ai-quiz-generator): Generate quiz questions on almost any topic, then play solo or turn the quiz into a live multiplayer battle. - [Online Quiz Maker](https://jbattle.in/online-quiz-maker): Create an online quiz with auto-generated questions and use it for solo play or a live multiplayer quiz room. - [Online Quiz Game](https://jbattle.in/online-quiz-game): Play an online quiz game with friends, answer synchronized questions and compete on a real-time leaderboard. - [Online Trivia Quiz](https://jbattle.in/trivia-quiz): Play online trivia across general knowledge, movies, sport, history, geography or a custom topic. - [Daily Quiz Challenge](https://jbattle.in/daily): Play a fresh daily quiz challenge, protect your streak and compete on the leaderboard. - [Adaptive Learning & Spaced Repetition](https://jbattle.in/mastery-forge): Learn a topic with a personalised skill tree, adaptive difficulty and spaced-repetition review. - [Mock Interview Online](https://jbattle.in/ai-mock-interview): Take a mock interview by voice or text. Solo Learners get 2 free interviews per month, then additional interviews are ₹100 each. - [Coding Interview Practice Online](https://jbattle.in/coding-interview-practice): Practise coding interviews with an interviewer. Solve problems, explain complexity and get structured feedback. - [HR Interview Practice Online](https://jbattle.in/hr-interview-practice): Practise HR and behavioural interview questions with an interviewer and improve communication and answer structure. - [Campus Placement Preparation](https://jbattle.in/placement-preparation): Prepare for campus placements with mock interviews for technical, coding and HR rounds plus role-specific interview preparation. - [Interview questions](https://jbattle.in/interview-questions): Curated interview questions with written answers across eight technologies. - [Community Q&A](https://jbattle.in/community): Questions asked and answered by JBattle members. - [Contact](https://jbattle.in/contact): Reach the JBattle team about a correction, a question or a placement-cell enquiry. ## Interview questions with answers Curated question sets, each answer written out in full, with the follow-up an interviewer asks next. - [Java interview questions](https://jbattle.in/interview-questions/java): 30 Java interview questions with written answers. Java interview questions with real answers — OOP, collections, strings, exceptions, JVM memory and concurrency — plus the follow-up each one leads to. - [JavaScript interview questions](https://jbattle.in/interview-questions/javascript): 26 JavaScript interview questions with written answers. JavaScript interview questions with real answers — closures, hoisting, the event loop, promises, this, and prototypes — plus the follow-up each one leads to. - [Python interview questions](https://jbattle.in/interview-questions/python): 25 Python interview questions with written answers. Python interview questions with real answers — list vs tuple, mutability, decorators, generators, the GIL, and the mutable default argument trap. - [SQL interview questions](https://jbattle.in/interview-questions/sql): 25 SQL interview questions with written answers. SQL interview questions with real answers and queries — joins, GROUP BY vs WHERE, subqueries, window functions, indexes, normalisation and transactions. - [React interview questions](https://jbattle.in/interview-questions/react): 23 React interview questions with written answers. React interview questions with real answers — props vs state, hooks, the dependency array, keys, reconciliation, and how to fix an unnecessary re-render. - [Spring Boot interview questions](https://jbattle.in/interview-questions/spring-boot): 24 Spring Boot interview questions with written answers. Spring Boot interview questions with real answers — dependency injection, auto-configuration, bean scopes, REST, JPA, transactions and exception handling. - [DSA interview questions](https://jbattle.in/interview-questions/dsa): 24 DSA interview questions with written answers. DSA interview questions with real answers — complexity, arrays and hashing, the two-pointer and sliding-window patterns, trees, graphs and dynamic programming. - [System Design interview questions](https://jbattle.in/interview-questions/system-design): 23 System Design interview questions with written answers. System design interview questions with real answers — scaling, load balancing, caching, database choice, CAP, consistency, queues and rate limiting. ## Community Q&A Real questions asked by learners and answered by other members. Public and free to read, and growing continuously. - [Community Q&A](https://jbattle.in/community): Every question and answer on JBattle, browsable by topic. - [General questions](https://jbattle.in/community/topic/general): 17 community questions about General, answered by JBattle members. - [Interview Prep questions](https://jbattle.in/community/topic/interview-prep): 14 community questions about Interview Prep, answered by JBattle members. - [DSA questions](https://jbattle.in/community/topic/dsa): 5 community questions about DSA, answered by JBattle members. - [Java questions](https://jbattle.in/community/topic/java): 4 community questions about Java, answered by JBattle members. - [JavaScript questions](https://jbattle.in/community/topic/javascript): 4 community questions about JavaScript, answered by JBattle members. - [SQL questions](https://jbattle.in/community/topic/sql): 4 community questions about SQL, answered by JBattle members. - [Aptitude questions](https://jbattle.in/community/topic/aptitude): 3 community questions about Aptitude, answered by JBattle members. - [C++ questions](https://jbattle.in/community/topic/c): 3 community questions about C++, answered by JBattle members. - [DBMS questions](https://jbattle.in/community/topic/dbms): 3 community questions about DBMS, answered by JBattle members. - [Networking questions](https://jbattle.in/community/topic/networking): 3 community questions about Networking, answered by JBattle members. - [Operating Systems questions](https://jbattle.in/community/topic/operating-systems): 3 community questions about Operating Systems, answered by JBattle members. - [Python questions](https://jbattle.in/community/topic/python): 3 community questions about Python, answered by JBattle members. - [React questions](https://jbattle.in/community/topic/react): 2 community questions about React, answered by JBattle members. - [System Design questions](https://jbattle.in/community/topic/system-design): 2 community questions about System Design, answered by JBattle members. ## Learn Free structured lessons, each covering one idea with code, complexity, common mistakes and practice. Organised as track > topic > lesson, and every lesson links to the next one. - [Learn hub](https://jbattle.in/learn): All learning tracks on JBattle - DSA, core computer science, languages and interview preparation. ### Data Structures & Algorithms - [Data Structures & Algorithms](https://jbattle.in/learn/dsa): A structured DSA course covering arrays, strings and hashing — memory layout, complexity, and the two-pointer, sliding-window, prefix-sum and counting patterns behind most interview questions. #### Arrays - [Arrays](https://jbattle.in/learn/dsa/arrays): Learn how arrays work in memory, what each operation really costs, and the two-pointer, sliding-window and prefix-sum patterns that solve most array interview questions. - [Memory layout](https://jbattle.in/learn/dsa/arrays/memory-layout): Why array access is O(1): contiguous memory, fixed element size, and the base + index x size address formula, with a worked example. - [Traversal & operations](https://jbattle.in/learn/dsa/arrays/traversal-and-operations): Declare and traverse arrays in Java, Python, C++ and JavaScript, and learn the exact time complexity of access, search, insert and delete. - [Two pointers](https://jbattle.in/learn/dsa/arrays/two-pointers): Learn the two pointer technique with a step-by-step dry run: converging pointers on a sorted array, the fast/slow variant, and when it applies. - [Sliding window](https://jbattle.in/learn/dsa/arrays/sliding-window): Fixed and variable sliding windows with worked code: reuse the previous window's answer instead of recomputing it, and turn O(n x k) into O(n). - [Prefix sum](https://jbattle.in/learn/dsa/arrays/prefix-sum): Build a prefix sum array to answer any range-sum query in O(1), and use the prefix + hash map trick to count subarrays with a given sum. #### Strings - [Strings](https://jbattle.in/learn/dsa/strings): Understand string immutability and why concatenation in a loop is O(n squared), then work through the palindrome, anagram and pattern-matching questions interviewers actually ask. - [Immutability & cost](https://jbattle.in/learn/dsa/strings/immutability-and-cost): Why strings are immutable, why building one in a loop is O(n squared), and how StringBuilder, join and rope-style buffers fix it. - [Palindromes & anagrams](https://jbattle.in/learn/dsa/strings/palindromes-and-anagrams): Solve palindrome checks with two pointers and anagram checks with frequency counting, including the expand-around-centre technique. - [Pattern matching](https://jbattle.in/learn/dsa/strings/pattern-matching): How substring search works: the naive O(n x m) scan, why it repeats work, and how the KMP prefix table brings it down to O(n + m). #### Hashing - [Hashing](https://jbattle.in/learn/dsa/hashing): How hash tables achieve average O(1) lookup, how collisions are resolved with chaining and open addressing, and the frequency-counting patterns that use them. - [How hash tables work](https://jbattle.in/learn/dsa/hashing/hash-table-internals): Hash functions, buckets, load factor, and the two ways collisions are resolved — separate chaining and open addressing — with their real complexities. - [Frequency counting](https://jbattle.in/learn/dsa/hashing/frequency-counting): The counting, seen-before and group-by patterns that hash maps make O(n), with worked code for each and the array-instead-of-map optimisation. ### CS Core - [CS Core](https://jbattle.in/learn/cs-core): Core computer science for placement interviews: object-oriented programming with real code, composition over inheritance, database normalisation and how indexes decide query speed. #### OOPs Concepts - [OOPs Concepts](https://jbattle.in/learn/cs-core/oops): Encapsulation, abstraction, inheritance and polymorphism explained with code, plus the composition-over-inheritance rule and the SOLID principles that follow from it. - [The four pillars](https://jbattle.in/learn/cs-core/oops/four-pillars): Encapsulation, abstraction, inheritance and polymorphism with real code, and the concrete problem each one solves. - [Inheritance vs composition](https://jbattle.in/learn/cs-core/oops/inheritance-vs-composition): Why deep inheritance hierarchies break, how composition fixes them, and the practical rule for choosing between is-a and has-a. - [Polymorphism in practice](https://jbattle.in/learn/cs-core/oops/polymorphism-in-practice): How dynamic dispatch actually works with virtual tables, what abstract classes and interfaces each give you, and how polymorphism removes conditional chains. #### DBMS & SQL - [DBMS & SQL](https://jbattle.in/learn/cs-core/dbms): Learn database normalisation up to 3NF and how indexes really work — B-trees, when an index is skipped, and how to read the cost of a query. - [Normalisation](https://jbattle.in/learn/cs-core/dbms/normalization): Normalisation up to 3NF with one table refactored step by step, plus the anomalies each normal form removes and when to denormalise. - [Indexes & query cost](https://jbattle.in/learn/cs-core/dbms/indexes-and-query-cost): B-tree indexes, composite index column order, the leftmost prefix rule, and the common mistakes that make a database ignore your index entirely. ### Languages - [Languages](https://jbattle.in/learn/languages): Language-specific interview preparation: the JVM memory model, garbage collection, pass-by-value semantics and how to choose between Java's collection implementations. #### Java - [Java](https://jbattle.in/learn/languages/java): Learn how the JVM divides memory between stack and heap, what garbage collection really guarantees, and how to choose between Java's collection implementations. - [JVM memory model](https://jbattle.in/learn/languages/java/jvm-memory-model): How the JVM splits memory between stack and heap, what pass-by-value really means in Java, and what garbage collection does and does not guarantee. - [Collections framework](https://jbattle.in/learn/languages/java/collections-framework): ArrayList vs LinkedList, HashMap vs TreeMap vs LinkedHashMap, HashSet vs TreeSet — with the complexities and the interview answers behind each choice. ### Aptitude & Interview - [Aptitude & Interview](https://jbattle.in/learn/aptitude): Prepare for HR and behavioural interview rounds with the STAR method, worked fresher answers, and a clear account of what each question is really testing. #### HR Interview - [HR Interview](https://jbattle.in/learn/aptitude/hr-interview): How to answer the HR questions every fresher faces, with the STAR structure, worked example answers, and the reasoning behind what interviewers are listening for. - [Tell me about yourself](https://jbattle.in/learn/aptitude/hr-interview/tell-me-about-yourself): A structure for the opening question of every interview, with a worked fresher answer and the mistakes that lose the room in the first minute. - [Strengths & weaknesses](https://jbattle.in/learn/aptitude/hr-interview/strengths-and-weaknesses): How to answer the strengths and weaknesses question with the STAR method, a real weakness that does not hurt you, and the cliches to avoid. ## Quiz topics Ready-made, always-free quiz topics. Each page explains what you'll be tested on and lets you play solo or start a live multiplayer battle. ### Geography - [50 States Quiz](https://jbattle.in/50-states-quiz): Think you can name all 50 US states? - [World Capitals Quiz](https://jbattle.in/quiz/world-capitals-quiz): Can you match every country to its capital? - [Geography Quiz](https://jbattle.in/quiz/geography-quiz): Countries, capitals, rivers, and landmarks — this geography quiz takes you around the world one question at a time. ### Self-Discovery - [Personality Quiz](https://jbattle.in/personality-quiz): A personality quiz that sparks real conversation. - [Career Quiz](https://jbattle.in/career-quiz): A career quiz designed to surface strengths, interests, and directions you might not have considered. - [Attachment Style Quiz](https://jbattle.in/attachment-style-quiz): Discover yourself with an attachment style quiz that explores how you bond, communicate, and handle closeness in relationships. ### Programming - [JavaScript Quiz](https://jbattle.in/quiz/javascript-quiz): Test your JavaScript from the fundamentals to the tricky bits. - [Python Quiz](https://jbattle.in/quiz/python-quiz): From list comprehensions to decorators, this Python quiz checks whether you really know the language. - [React Quiz](https://jbattle.in/quiz/react-quiz): Hooks, rendering, state, and effects — this React quiz tests the concepts that matter in real components. - [SQL Quiz](https://jbattle.in/quiz/sql-quiz): Joins, aggregates, indexes, and query design — this SQL quiz checks whether you can actually query data well. - [System Design Quiz](https://jbattle.in/quiz/system-design-quiz): Scaling, caching, sharding, and trade-offs — this system design quiz tests the architecture thinking senior interviews demand. - [Data Structures Quiz](https://jbattle.in/quiz/data-structures-quiz): Arrays, trees, graphs, hashing, and Big-O — this data structures quiz drills the fundamentals every coding interview leans on. ### Science - [Photosynthesis Quiz](https://jbattle.in/quiz/photosynthesis-quiz): How do plants turn light into energy? - [Human Anatomy Quiz](https://jbattle.in/quiz/human-anatomy-quiz): Bones, muscles, organs, and systems — this human anatomy quiz helps students and med aspirants lock in the body's structure through fast, repeatable recall. - [Periodic Table Quiz](https://jbattle.in/quiz/periodic-table-quiz): Elements, symbols, groups, and trends — this periodic table quiz turns chemistry revision into a fast, competitive game. - [Astronomy Quiz](https://jbattle.in/quiz/astronomy-quiz): Planets, stars, galaxies, and the cosmos — this astronomy quiz is for anyone who looks up and wonders. ### History - [World War II Quiz](https://jbattle.in/quiz/world-war-2-quiz): Battles, leaders, dates, and turning points — this World War II quiz tests your grasp of the 20th century's defining conflict. - [Ancient Rome Quiz](https://jbattle.in/quiz/ancient-rome-quiz): Emperors, legions, republic, and empire — this Ancient Rome quiz brings the classical world to life through fast trivia. - [Indian History Quiz](https://jbattle.in/quiz/indian-history-quiz): From ancient empires to independence, this Indian history quiz spans the events, rulers, and movements that shaped the subcontinent. ### Languages - [French Vocabulary Quiz](https://jbattle.in/quiz/french-vocabulary-quiz): Build your French vocabulary the fun way. - [Spanish Basics Quiz](https://jbattle.in/quiz/spanish-basics-quiz): Kickstart your Spanish with a quiz on essential words, phrases, and grammar. - [English Grammar Quiz](https://jbattle.in/quiz/english-grammar-quiz): Tenses, punctuation, and usage — this English grammar quiz sharpens the rules that make writing clear and correct. ### Trivia - [General Knowledge Quiz](https://jbattle.in/quiz/general-knowledge-quiz): A little bit of everything — science, history, sport, and pop culture. - [Movie Trivia Quiz](https://jbattle.in/quiz/movie-trivia-quiz): Lights, camera, quiz! ### Sport - [Football Quiz](https://jbattle.in/quiz/football-quiz): Clubs, players, World Cups, and records — this football (soccer) quiz settles who the real fan is. ### Arts - [Music Theory Quiz](https://jbattle.in/quiz/music-theory-quiz): Scales, chords, intervals, and notation — this music theory quiz builds the foundations every musician needs, one fast round at a time. ### Aptitude - [Logical Reasoning Quiz](https://jbattle.in/quiz/logical-reasoning-quiz): Patterns, sequences, and deductions — this logical reasoning quiz trains the aptitude skills tested in placements, exams, and interviews. ## Optional - [All quizzes](https://jbattle.in/quizzes): Browse every ready-made quiz topic on JBattle, grouped by category. - [Quiz for Friends](https://jbattle.in/quiz-for-friends): Make a quiz for friends, share a room code and compete together online with live scoring. - [Personality Quiz Online](https://jbattle.in/personality-quiz): Generate and answer personality-themed quiz questions on JBattle. - [Career Quiz Online](https://jbattle.in/career-quiz): Generate a career-themed quiz and explore interests, skills and roles through questions. - [Attachment Style Quiz Online](https://jbattle.in/attachment-style-quiz): Generate an attachment-style themed quiz and answer auto-generated questions. - [50 States Quiz](https://jbattle.in/50-states-quiz): Test your knowledge of US states, capitals and geography in a 50 states quiz. - [Your Dashboard](https://jbattle.in/dashboard): View your personal JBattle history, scores, streaks and progress. - [Quiz Leaderboard & Ranks](https://jbattle.in/ranks): See JBattle rankings, ELO ratings and leaderboard performance. - [Learning & Quiz Community](https://jbattle.in/forum): Discuss quiz topics, learning strategies and interview preparation with the JBattle community. - [Privacy & Data Retention](https://jbattle.in/privacy): Learn what JBattle collects, why it is collected and how to request deletion.