Working Code

Asked a question
API to retrieve the Jira user accountId in ServiceNow

API Type: GET Endpoint: https://instance-sandbox.atlassian.net/rest/api/3/user/search?query=piyush.kalra@workingcode.com  Headers: Content-Type: application/json JSON...

December 9, 2025 2
Asked a question
Java Spring Boot Basics – A Complete Beginner Guide

🟩 What is Spring Boot? Spring Boot is a framework built on top of Spring that helps you create production-ready applications quickly. Key Features No XML configuration required Embedded Tomcat/Jetty...

November 18, 2025 2
Asked a question
Most Searched Drupal Questions

What is Drupal?Drupal is a free, open-source CMS (Content Management System) written in PHP. Drupal vs WordPress vs Joomla – which is better? Drupal is very flexible, scalable, and suited for...

November 18, 2025 2
Asked a question
How to Create a Survey in ServiceNow?

Step 1 — Go to Survey Designer Navigate to: <span class="hljs-keyword">Self</span>-Service → Surveys → Survey Designer Step 2 — Create New Survey Click New Fill:...

November 18, 2025 2
Asked a question
Top IRM / GRC Architecture Interview Questions & Answers

🟦 1. What is the IRM architecture in ServiceNow? Answer:IRM architecture in ServiceNow is built around five core layers: Authority Documents (UCF, ISO, NIST, PCI, SOX) Control Objectives...

November 18, 2025 2
Asked a question
Check for Armstrong number in java

public class ArmstrongNumber {     public static void main(String[] args) {         int num = 153, originalNum, sum = 0, n = 0;         originalNum = num;         n...

November 18, 2025 2
Asked a question
Find the GCD (Greatest Common Divisor) of two numbers in java

[apcode language="php"] public class GCD {     public static int gcd(int a, int b) {         if(b == 0) return a;         return gcd(b, a % b);     }      public static void...

November 18, 2025 2
Asked a question
Check if a string is a palindrome in java

[apcode language="php"] public class Palindrome {     public static void main(String[] args) {         String str = "madam";         String reversed = new StringBuilder(str).reverse().toString();...

November 18, 2025 2
Asked a question
Implement a simple Bubble Sort algorithm in java

[apcode language="php"] public class BubbleSort {     public static void main(String[] args) {         int[] arr = {64, 34, 25, 12, 22, 11, 90};         for(int i = 0; i < arr.length...

November 18, 2025 2
Asked a question
Find the factorial of a number using recursion in Java

[apcode language="php"] public class Factorial {     public static int factorial(int n) {         if (n == 0) return 1;         return n * factorial(n - 1);     }      public...

November 18, 2025 2
Asked a question
Check if a number is prime in Java

[apcode language="php"] public class PrimeNumber {     public static void main(String[] args) {         int num = 29;         boolean isPrime = true;         if (num <= 1)...

November 18, 2025 2
Asked a question
Find the largest element in an array in Java

[apcode language="php"] public class LargestInArray {     public static void main(String[] args) {         int[] arr = {10, 25, 5, 40, 15};         int max = arr[0];         for(int...

November 18, 2025 2
Asked a question
Write a program to reverse a string in Java

[apcode language="php"] public class ReverseString {     public static void main(String[] args) {         String input = "Hello";         String reversed = "";         for(int...

November 18, 2025 2
Asked a question
Basic Java Interview Questions

1. What is Java? Java is a high-level, object-oriented programming language developed by Sun Microsystems (now owned by Oracle). It is platform-independent, meaning code written in Java can run on any...

November 18, 2025 2
Asked a question
Basic PHP Interview Questions and Answers

1. What is PHP? PHP (Hypertext Preprocessor) is a server-side scripting language designed for web development. It is widely used to create dynamic web pages and applications. 2. What are the main features...

November 18, 2025 2
Asked a question
How to validate email in PHP?

Use filter_var() with FILTER_VALIDATE_EMAIL. Example: [apcode language="php"] if (filter_var($email, FILTER_VALIDATE_EMAIL)) {     echo "Valid email"; } else {     echo "Invalid...

November 18, 2025 2
Asked a question
How to upload files in PHP?

Use $_FILES superglobal with move_uploaded_file(). Example: [apcode language="php"] move_uploaded_file($_FILES['file']['tmp_name'], "uploads/" . $_FILES['file']['name']);...

November 18, 2025 2
Asked a question
How to get form data in PHP?

Use $_POST or $_GET. Example: [apcode language="php"] $name = $_POST['name']; $email = $_POST['email'];

November 18, 2025 2
Asked a question
How to insert data into MySQL database using PHP?

Use an SQL INSERT statement with mysqli or PDO. Example: $sql = "INSERT INTO users (name, email) VALUES ('John Doe', 'john@example.com')"; $conn->query($sql);...

November 18, 2025 2
Asked a question
How to connect PHP with MySQL database?

<?php $servername = "localhost"; // or your database server IP $username = "your_username"; // your database username $password = "your_password";...

November 18, 2025 2
Load More
Scroll to top