0% found this document useful (0 votes)
135 views

ServiceNow Interview Questioner

The document outlines a list of potential interview questions covering topics in Java programming, data structures, algorithms, databases, and web services. The core Java questions focus on multithreading, serialization, concurrency, OOP concepts, design patterns, exceptions, and collections. Database questions involve SQL queries on joins, normalization, and performance tuning. Algorithm questions include coding problems involving strings, arrays, recursion, sorting, and searching.

Uploaded by

rajendergrr
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
135 views

ServiceNow Interview Questioner

The document outlines a list of potential interview questions covering topics in Java programming, data structures, algorithms, databases, and web services. The core Java questions focus on multithreading, serialization, concurrency, OOP concepts, design patterns, exceptions, and collections. Database questions involve SQL queries on joins, normalization, and performance tuning. Algorithm questions include coding problems involving strings, arrays, recursion, sorting, and searching.

Uploaded by

rajendergrr
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 3

Interview questions area:

1) Core Java:
a. Multithreading
b. Serialization
c. Concurrency
2) OOPs concepts
a. Polymorphism
b. Inheritance
c. Abstraction
d. Encapsulation
3) Design patterns: What, how & when to use (please be sure to know how to code them as well)
a. Singleton
b. Factory
c. Delegator
4) Exceptional Handling
5) Collections (too much focus on this topic)
a. HashMaps
b. Set
c. Lists etc
6) DB concepts:
a. Joins
b. Performance tuning
c. Normalization
7) Basics of Web services
a. Rest
b. SOAP
c. Difference between the 2
d. When to use which
8) String concepts & memory management
9) Explain Annotations
10) Explain java5, vs, java6, java 7
11) Explain Spring MVC
12) What is the difference between == and ===
13) Give some expression and write the output of this expressions like 4+'3'+5
14) How to declare the variable in java script
15) How to deploy the war in tomcat
16) How to know when the application is not deployed in case of any error is come or not and how to solve the issue
17) Which file you have to write the port numbers and host
18) Whats the difference between method overloading and method overriding
19) In tomcat server.xml file which data you have to write
20) How to declare the boolean variable in java script
21) How do you know that in which file we have to pick, when the application is deployed
22) JSON objects
Code test:

1) Prepare well on numerical series questions like:


a. 2, 7, 14, 23, ?, 47
b. 1, 3, 5,6, 7, 10, ?,?,?,?
c. 0,1,1,2,3,5,?,?,?
2) Remove duplicates in a given array

3) Print a given string in reverse or Write code to reversal of String without using char array and inbuilt functions. 
Input = "Hello World"
Output 1 = "dlorW olleH"
Output 2 = "World Hello" 

4) Print “Frizz” for numbers divisible by 3


5) Write a program to divide a number by its number of digits in a following way
a. The first digist of the number by 1
b. The first two digits by number 2
c. The first three digits by number 3 and continue till all digits of the given number are over
d. return true if the given number is divisable in the above way having no reminder or otherwise return false

6) Patterns like prime number, Armstrong, Anagrams, Palindromes, Fibonacci series etc
7) Given an integer array like - 5, 4, 3, 6, 7, 6, 5, 5
i. Find out which element is repeating max number of times and how many times it is being repeated
ii. Optimize the code using exception handling for boundary conditions
8) Given a Character array like - My name is Gaurav.
i. Replace all spaces with %20. Additional space cannot be used, assume that the existing array can accommodate
the additional characters.
9) Given a sorted integer array like - 1,3,4,5,7
i. Find the index of the input element. If element not found return the index where element could be added to
retain the sort order.
10) Given a sorted array which was rotated n number of times, write a program to find the index of the smallest
element and also the number of rotations using the smallest element index.  Input can be any one of the following
array.
1, 2, 3, 4, 5
2, 3, 4, 5, 1
3, 4, 5, 1, 2
4, 5, 1, 2, 3
5, 1, 2, 3, 4 

11) Print first non-repeating character of a given string abhbbaa, so it should print h
12) write a program to find sum of the digits of given string which one should return as int and put proper validation
and print proper error message and should be in optimal way and suppose take string as "123".
13) Write a program to find how many number of times each number appeared in the given array [3,1,6,8,12,....]
and find what is the most appeared number and should use single loop.
14) Write a algorithm to find least combination mean minimum number of combinations use  for a given number
suppose take 40(minimum combination is 20+20) from the given array [5,10,20,50].
15) Write a query on student table to find count of the students for all the grades.
16) Write a query to return id,grade,name,address on student table based on grade and should return all the grades
where at least 20 students.
17) Delete all the duplicate records from the student table where name,grade,address columns should be same in
order to consider duplicate records.
18) Print  fizz for divided by 5, buzz for divided by 3, fizzbuzz for divided by both 3 and 5
19) Print second minimum number in an integer array
20) Print each employee manager of top level hierachy. for example 
    employee have respective manager, manger have respective manager ------- ceo
21) Write a program to reverse int number and it only return int value without using String and char c[] ;
22) What are the required fields to create Employee class in organization?
23) How to use recursive method? write a program?
24) scan/loop 1 to 100,
a. div by 3 - Fizz,
b. div by 5 - Buzz,
c. if not then print n
25) Class Employee{

privte  int employeeId;


private  String employeeName;
private  Employee manager;
String phoneNumber;
}

display all  manager names

26) int arr[]= [1,2,4,6,8,3,2,1,2,23,...] ;  which element occurring most, and how many times
27) Write a program to identify the given string is valid or not.

      ex:  { [ ] ( ) [ ( ) ] } - Valid,  { ( [ ) } } - Invalid

28) Given two tables Employee and Department, write an SQL query to get the dept name and no of employees in
each dept
29) In case of i have given sorted array like 12 15 45 56 67 86 -1 -1 -1 key like 20, In this array which searching
algorithm is best and sorting algorithm
30) Find the index of the input element. If element not found return the index where element could be added to
retain the sort order.
31)

You might also like