JobsJob TrackerJob alerts

SAP · 567 questions

All 567Coding 324System Design 32Low-Level Design 59Behavioral 34Product Sense 7
  • Minimize Array SumCoding
  • Postorder traversal in BST and construct treesCoding
  • Query sub-organizations under parent organizationCoding
  • Maximize sightseeing beauty value within time limitCoding
  • K-diff Pairs and Palindrome SubstringsCoding
  • Linked List, Trie, and BST OperationsCoding
  • Sorting/searching optimization, design patterns, and SQL joinsCoding
  • Remove odd-valued nodes from linked listCoding
  • Convert binary linked list to decimalCoding
  • C Output and MAC Address ConceptsCoding
  • Delete repetitive occurrences in a linked listCoding
  • Frequent characters in stringCoding
  • Array and String Coding ProblemsCoding
  • Mirror of a Binary Tree AlgorithmCoding
  • Count page faults in LRU cache managementCoding
  • Basic string and linked list operationsCoding
  • Lowest Common Ancestor and Linked List ReversalCoding
  • Insert Character in Singly Linked ListCoding
  • Implement a Queue using Stacks and pop the K-th last elementCoding
  • Count good nodes in binary treeCoding
  • Check whether a linked list is circularCoding
  • Filter linked list for even valuesCoding
  • Count total squares in an n x n square gridCoding
  • SQL query for second highest scoreCoding
  • Reverse a singly linked list in a single iterationCoding
  • Find string length and middle node of linked listCoding
  • Minimum races to decide top 3 horses out of 25Coding
  • Find the second smallest element in a Binary Search TreeCoding
  • Distance between two nodes in a binary treeCoding
  • Implement and resolve a deadlock in JavaCoding
  • Implement OR and AND using conditional operatorCoding
  • Find the nth largest element in a BSTCoding
  • Construct a binary tree for infix expression without stackCoding
  • Delete a node in a linked list given only a pointer to that nodeCoding
  • Implement linked list and find Nth largest element in O(1) spaceCoding
  • Code a Sudoku SolverCoding
  • Count Elements with Absolute Difference Greater Than or Equal to DCoding
  • Find Corrupt Node in BSTCoding
  • Remove duplicates from DLLCoding
  • Draw BST from flattened arrayCoding
  • Find name of HR in HR departmentCoding
  • Count prime numbers in range with digit constraintsCoding
  • Unique subarrays with odd number count conditionCoding
  • Shortest path in a maze without standard algorithmsCoding
  • Count pairs with given sumCoding
  • Binary tree fire burning timeCoding
  • JavaScript and InheritanceCoding
  • Linked List and RecursionCoding
  • Time Complexity of Sorting AlgorithmsCoding
  • Java Collections Framework and Built-in Data StructuresCoding
  • Concept of Dynamic ProgrammingCoding
  • Working Mechanism of HashmapCoding
  • Shortest Loop with Maximum Happiness in Weighted Directed GraphCoding
  • Supported vs Bleak NumbersCoding
  • Print alternate numbers with each run of the programCoding
  • Find pattern with wildcard in textCoding
  • Sorting algorithms, merge sort dry run, and complexityCoding
  • Reverse an array and delete a node without head pointerCoding
  • Library Management System Database and SQLCoding
  • Vowel-only substrings containing all vowelsCoding
  • Debugging a linked listCoding
  • LFU cache implementation with k sizeCoding
  • What is a Trie data structure?Coding
  • Form weights from 1 to 40 kg using minimum basesCoding
  • Complex SQL query
  • Access specifiers and abstractionLow-Level Design
  • IPL Fantasy League schemaSystem Design
  • Spring Boot and Redis questions
  • Database and Microservices
  • Managerial conflictBehavioral
  • Component handoverBehavioral
  • Helping a colleagueBehavioral
  • Prioritizing issuesBehavioral
  • Learning from failureBehavioral
  • Implement OOPs Concepts: Constructor, Destructor, and OverloadingCoding
  • Design a Zomato-like ApplicationSystem Design
  • Find Common AncestorsCoding
  • Projects and OOPs Concepts Discussion
  • Inheritance, Friend Class, and Temple & Magical Pond Puzzle
  • IoT Project Ideas and Situational Conflict HandlingBehavioral
  • Validate String ExpressionCoding
  • Online test with psychometric, aptitude, design, testing, essay and codingCoding
  • Unique sorting algorithm and dynamic programming problemsCoding
  • Coding Section AssessmentCoding
  • Matrix Manipulation ProblemCoding
  • Alphabet fibonacci and coin change codingCoding
  • Count ways to reach the n-th stair variantCoding
  • Minimum operations to convert a rectangle into anotherCoding
  • Convert string array to ArrayList and manipulate itCoding
  • Counting orders with discount conditionsCoding
  • Tricky variation of merge sortCoding
  • Divisor Friends problemCoding
  • Energy Drink Distribution ProblemCoding
  • SHL Coding AssessmentCoding
  • SQL QueriesLow-Level Design
  • Design Tiny URLSystem Design
  • UML Diagram for File SystemLow-Level Design
  • Measure 1L using 5L and 3L buckets
  • Abstract Class vs Interface
  • Singleton Class
← SAP questions
  1. Interview questions
  2. SAP
  3. Singleton Class

Singleton Class

Filed under SAP · Also reported at House Joy

The question

What is a Singleton class and how to implement it in Java?

No write-up yet. Related questions below have one.

Related SAP questions

  • Second largest element in an array
  • Count elements less than K
  • Find max per row in 2D array
  • Classify month by season
  • Find equilibrium index
← Abstract Class vs Interface

Collected from public candidate posts and coding forums. Updated Nov 2026.