DB Interview questions
Position - Associate Developer
Package - 26LPA
1st Round ๐ฅ
1. What are the new features introduced in Java 8.
https://www.baeldung.com/java-8-new-features
2. Sort a student class list based on the student age in descending order.
https://www.educative.io/answers/how-to-sort-a-list-of-user-defined-objects-in-java
3. Write a logic to detect a loop in linked list and remove the loop
https://www.google.com/amp/s/www.geeksforgeeks.org/detect-loop-in-a-linked-list/amp/
4. Design HashMap put method.
https://www.turing.com/kb/implementing-hashmap-in-java
5. How to divide a monolithic application to Microservice
https://martinfowler.com/articles/break-monolith-into-microservices.html
6. Why String is immutable
https://www.google.com/amp/s/www.geeksforgeeks.org/java-string-is-immutable-what-exactly-is-the-meaning/amp/
7. How Redis Works and what are the different caching strategies.
https://codedamn.com/news/backend/advanced-redis-caching-techniques
8. How to add a list in redis cache and how to access the data again
https://redis.io/glossary/lists-in-redis/
9. What are the design pattern spring boots internally use
https://www.baeldung.com/spring-framework-design-patterns
10. How spring Auto configuration features works
https://www.marcobehler.com/guides/spring-boot-autoconfiguration
11. How to enable hibernate caching
https://www.baeldung.com/hibernate-second-level-cache
12. Lazy loading vs Eager Loading
https://www.imperva.com/learn/performance/lazy-loading/
13. Asked me to improve one SQL query
https://developernation.net/blog/12-ways-to-optimize-sql-queries-in-database-management/
2nd Round ๐ฅ
1. Implements a search engine, something like Google. Low Level Coding
https://medium.com/@maxi.gkd/building-a-search-engine-using-a-trie-data-structure-cb79475d8a3d
2. How Pulisher Subscribe modal works
https://www.geeksforgeeks.org/what-is-pub-sub/
3. How to restrict an API call to be called from users who have required roles and permission
https://www.baeldung.com/role-and-privilege-for-spring-security-registration
4. Request Scope in spring boot
https://www.baeldung.com/spring-bean-scopes#:~:text=The%20request%20scope%20creates%20a,for%20a%20particular%20WebSocket%20session.
5. How to exclude a dependency
https://www.baeldung.com/mvn-plugin-dependency-exclusion
6. How to pass JWT token in rest api call
https://www.toptal.com/spring/spring-security-tutorial
7. logic to execute a method after every one hour without using Cron job
https://stackoverflow.com/questions/10748212/how-to-call-function-every-hour-also-how-can-i-loop-this#:~:text=Create%20a%20Timer%20object%20and,timer.
while(1==1) {
//Your code here
try{
Thread.sleep(3600000);
}
catch (Exception e) {}
}
8. Difference between scheduled and cached thread pool
https://www.linkedin.com/pulse/types-thread-pool-executors-aniket-nandan?utm_source=share&utm_medium=member_android&utm_campaign=share_via
___
โค๏ธ Please add more peoples to this telegram channel . follow @coder_baba
Position - Associate Developer
Package - 26LPA
1st Round ๐ฅ
1. What are the new features introduced in Java 8.
https://www.baeldung.com/java-8-new-features
2. Sort a student class list based on the student age in descending order.
https://www.educative.io/answers/how-to-sort-a-list-of-user-defined-objects-in-java
3. Write a logic to detect a loop in linked list and remove the loop
https://www.google.com/amp/s/www.geeksforgeeks.org/detect-loop-in-a-linked-list/amp/
4. Design HashMap put method.
https://www.turing.com/kb/implementing-hashmap-in-java
5. How to divide a monolithic application to Microservice
https://martinfowler.com/articles/break-monolith-into-microservices.html
6. Why String is immutable
https://www.google.com/amp/s/www.geeksforgeeks.org/java-string-is-immutable-what-exactly-is-the-meaning/amp/
7. How Redis Works and what are the different caching strategies.
https://codedamn.com/news/backend/advanced-redis-caching-techniques
8. How to add a list in redis cache and how to access the data again
https://redis.io/glossary/lists-in-redis/
9. What are the design pattern spring boots internally use
https://www.baeldung.com/spring-framework-design-patterns
10. How spring Auto configuration features works
https://www.marcobehler.com/guides/spring-boot-autoconfiguration
11. How to enable hibernate caching
https://www.baeldung.com/hibernate-second-level-cache
12. Lazy loading vs Eager Loading
https://www.imperva.com/learn/performance/lazy-loading/
13. Asked me to improve one SQL query
https://developernation.net/blog/12-ways-to-optimize-sql-queries-in-database-management/
2nd Round ๐ฅ
1. Implements a search engine, something like Google. Low Level Coding
https://medium.com/@maxi.gkd/building-a-search-engine-using-a-trie-data-structure-cb79475d8a3d
2. How Pulisher Subscribe modal works
https://www.geeksforgeeks.org/what-is-pub-sub/
3. How to restrict an API call to be called from users who have required roles and permission
https://www.baeldung.com/role-and-privilege-for-spring-security-registration
4. Request Scope in spring boot
https://www.baeldung.com/spring-bean-scopes#:~:text=The%20request%20scope%20creates%20a,for%20a%20particular%20WebSocket%20session.
5. How to exclude a dependency
https://www.baeldung.com/mvn-plugin-dependency-exclusion
6. How to pass JWT token in rest api call
https://www.toptal.com/spring/spring-security-tutorial
7. logic to execute a method after every one hour without using Cron job
https://stackoverflow.com/questions/10748212/how-to-call-function-every-hour-also-how-can-i-loop-this#:~:text=Create%20a%20Timer%20object%20and,timer.
while(1==1) {
//Your code here
try{
Thread.sleep(3600000);
}
catch (Exception e) {}
}
8. Difference between scheduled and cached thread pool
https://www.linkedin.com/pulse/types-thread-pool-executors-aniket-nandan?utm_source=share&utm_medium=member_android&utm_campaign=share_via
___
โค๏ธ Please add more peoples to this telegram channel . follow @coder_baba
Baeldung
New Features in Java 8 | Baeldung
A short intro into the new features of Java 8; the focus is on default and static interface methods, static method references, and Optional.
๐1
100+ Practice Questions
โ C/C++
โ Python
โ JavaScript
โ Java
โ C#
โ Golang
โ Simple Numbers
โ Find a digit at a specific place in a number
โ Find count of digits in a number
โ Find the largest digit
โ Find the 2nd largest digit
โ Find the kth largest digit
โ Find the smallest digit
โ Find the 2nd smallest digit
โ Find the kth smallest digit
โ Find generic root (sum of all digits) of a number
โ Reverse the digits in a number
โโ Rotate the digits in a number
โโ Is the number a palindrome?
โโ Find sum of 'n' numbers
โโ Check if a number is perfect square
โโ Find a number in an AP sequence
โโ Find a number in a GP sequence
โโ Find a number in fibonacci sequence
โโ Check number divisibility by 2, 3, 5, 9
โโ Check if a number is primary or not
20. Given a number, print all primes smaller than it
โโ Check if a number is circular prime or not
โโ Find all prime factors of a number
โโ Find the GCD of 2 numbers
โโ Find the LCM of 2 numbers
โโ Find the factorial of a number
โโ Find the exponentiation of a number
โ Unit Conversion
โ Number Base (Binary, Octal, Hexadecimal, Decimal)
โ Weight (gram, kg, pound)
โ Height (cm, m, inch, feet)
โ Temperature (centigrade, fahrenhite)
โ Distance (km, mile)
โ Area (mยฒ, kmยฒ, acre)
โ Volume (ltr, gallon)
โ Time (sec, min, hour)
โ Currency
โ Calculator
โ Loan EMI Calculator
โ Fixed Deposit Returns Calculator
โ Interest Calculator
โ BMI Calculator
โ Item Price (considering tax, discount, shipping)
โ Tip Calculator
โ Geometry
โ Find distance between 2 points
โ Given 2 sides of a right angle triangle, find the 3rd
โ Find 3rd angle of a triangle when 2 are given
โ Area of a triangle when 3 sides are given
โ Area of a right angle triangle
โ Perimeter of a Square
โ Area of a Square
โ Perimeter of a Rectangle
โ Area of a Rectangle
โ Circumference of a Circle
โโ Area of a Circle
โโ Circumference of a Semi-Circle
โโ Area of a Semi-Circle
โโ Area of a Ring
โโ Circumference of an Ellipse
โโ Area of an Ellipse
โโ Suface Area of a Sphere
โโ Volume of a Sphere
โโ Surface Area of a Hemisphere
20. Volume of a Hemisphere
โโ Surface area of a Cube
โโ Volume of a Cube
โโ Surface area of a Cylinder
โโ Volume of a Cylinder
โ Vector
โ Find Scalar Multiplication of a vector
โ Find addition/subtraction of vectors
โ Find magnitude of a vector
โ Find an unit vector along a given vector
โ Find dot product of 2 vectors
โ Find cross product of 2 vectors
โ Check if 2 vectors are orthogonal
โ Matrix
โ Find the determinant of a matrix
โ Find Scalar Multiplication of a matrix
โ Find addition/subtraction of matrices
โ Find the transpose of a matrix
โ Find if 2 matrices are orthogonal
โ Find inverse of a 2x2 and 3x3 matrix
โ Set
โ Find Union of 2 sets
โ Find Intersection of 2 sets
โ Find the Difference of 2 sets
โ Find the Symmetric Difference of 2 sets
โ Find if a set is subset/superset of another set
โ Find if 2 sets are disjoints
โ Special Numbers
โ Strong Number
โ Perfect Number
โ Armstrong Number
โ Harshad Number
โ Kaprekar Number
โ Lychrel Number
โ Narcissistic Decimal Number
โ Lucus Number
โ Catalan Number
โ Duck Number
โโ Ugly Number
โโ Abundant Number
โโ Deficient Number
โโ Automorphic Number
โโ Magic Number
โโ Friendly Pair Numbers
โโ Neon Number
โโ Spy Number
โโ Happy Number
20. Sunny Number
โโ Disarium Number
โโ Pronic Number
โโ Trimorphic Number
โโ Evil Number
โโ Amicable Pairs
โฌ If you want to excel in programming, practice a lot.
โฌ Problems based on numbers are easy to start with and they help in improving your analytical skills.
follow @coder_baba
โ C/C++
โ Python
โ JavaScript
โ Java
โ C#
โ Golang
โ Simple Numbers
โ Find a digit at a specific place in a number
โ Find count of digits in a number
โ Find the largest digit
โ Find the 2nd largest digit
โ Find the kth largest digit
โ Find the smallest digit
โ Find the 2nd smallest digit
โ Find the kth smallest digit
โ Find generic root (sum of all digits) of a number
โ Reverse the digits in a number
โโ Rotate the digits in a number
โโ Is the number a palindrome?
โโ Find sum of 'n' numbers
โโ Check if a number is perfect square
โโ Find a number in an AP sequence
โโ Find a number in a GP sequence
โโ Find a number in fibonacci sequence
โโ Check number divisibility by 2, 3, 5, 9
โโ Check if a number is primary or not
20. Given a number, print all primes smaller than it
โโ Check if a number is circular prime or not
โโ Find all prime factors of a number
โโ Find the GCD of 2 numbers
โโ Find the LCM of 2 numbers
โโ Find the factorial of a number
โโ Find the exponentiation of a number
โ Unit Conversion
โ Number Base (Binary, Octal, Hexadecimal, Decimal)
โ Weight (gram, kg, pound)
โ Height (cm, m, inch, feet)
โ Temperature (centigrade, fahrenhite)
โ Distance (km, mile)
โ Area (mยฒ, kmยฒ, acre)
โ Volume (ltr, gallon)
โ Time (sec, min, hour)
โ Currency
โ Calculator
โ Loan EMI Calculator
โ Fixed Deposit Returns Calculator
โ Interest Calculator
โ BMI Calculator
โ Item Price (considering tax, discount, shipping)
โ Tip Calculator
โ Geometry
โ Find distance between 2 points
โ Given 2 sides of a right angle triangle, find the 3rd
โ Find 3rd angle of a triangle when 2 are given
โ Area of a triangle when 3 sides are given
โ Area of a right angle triangle
โ Perimeter of a Square
โ Area of a Square
โ Perimeter of a Rectangle
โ Area of a Rectangle
โ Circumference of a Circle
โโ Area of a Circle
โโ Circumference of a Semi-Circle
โโ Area of a Semi-Circle
โโ Area of a Ring
โโ Circumference of an Ellipse
โโ Area of an Ellipse
โโ Suface Area of a Sphere
โโ Volume of a Sphere
โโ Surface Area of a Hemisphere
20. Volume of a Hemisphere
โโ Surface area of a Cube
โโ Volume of a Cube
โโ Surface area of a Cylinder
โโ Volume of a Cylinder
โ Vector
โ Find Scalar Multiplication of a vector
โ Find addition/subtraction of vectors
โ Find magnitude of a vector
โ Find an unit vector along a given vector
โ Find dot product of 2 vectors
โ Find cross product of 2 vectors
โ Check if 2 vectors are orthogonal
โ Matrix
โ Find the determinant of a matrix
โ Find Scalar Multiplication of a matrix
โ Find addition/subtraction of matrices
โ Find the transpose of a matrix
โ Find if 2 matrices are orthogonal
โ Find inverse of a 2x2 and 3x3 matrix
โ Set
โ Find Union of 2 sets
โ Find Intersection of 2 sets
โ Find the Difference of 2 sets
โ Find the Symmetric Difference of 2 sets
โ Find if a set is subset/superset of another set
โ Find if 2 sets are disjoints
โ Special Numbers
โ Strong Number
โ Perfect Number
โ Armstrong Number
โ Harshad Number
โ Kaprekar Number
โ Lychrel Number
โ Narcissistic Decimal Number
โ Lucus Number
โ Catalan Number
โ Duck Number
โโ Ugly Number
โโ Abundant Number
โโ Deficient Number
โโ Automorphic Number
โโ Magic Number
โโ Friendly Pair Numbers
โโ Neon Number
โโ Spy Number
โโ Happy Number
20. Sunny Number
โโ Disarium Number
โโ Pronic Number
โโ Trimorphic Number
โโ Evil Number
โโ Amicable Pairs
โฌ If you want to excel in programming, practice a lot.
โฌ Problems based on numbers are easy to start with and they help in improving your analytical skills.
follow @coder_baba
๐3โค1
Top 50 Linux Commands You Must Know as a Regular User...
1. ls - view contents of directory (list)
2. pwd - path of the current directory
3. cd - change directoryn
4. mkdir - make new directory
5. mv - move files / rename files
6. cp - copy files
7. rm - remove files
8. touch - create blank new file
9. rmdir - delete directory
10. cat - list content of file to terminal
11. clear - clear terminal window
12. echo - move data into a file
13. less - Read text file one screen at a time
14. man - show manual of Linux commands
15. sudo - enables you to perform tasks that require administrative or root permissions
16. top - task manager in terminal
17. tar - used to archive multiple files into a tarball
18. grep - used to searching words in specific files
19. head - view first lines of any text file
20. tail - view last lines of any text file
21. diff - compares the contents of two files line by line
22. kill - used for killing unresponsive program
23. jobs - display all current jobs along with their statuses
24. sort - is a command line utility for sorting lines of text files
25. df - info about system disk
26. du - check how much space a file or directory takes
27. zip - to compress your files into a zip archive
28. unzip - to extract the zipped files from a zip archive
29. ssh - a secure encrypted connection between two hosts over and insecure network
30. cal - shows calendar
31. apt - command line tool for interaction with packaging system
32. alias - custom shortcuts used to represent a command
33. w - current user info
34. whereis - used to locate the binary, source, manual page files
35. whatis - used to get one-line man page description
36. useradd - used to create a new user
37. passwd - used to changing password of current user
38. whoami - print current user
39. uptime - print current time when machine starts
40. free - print free disk space info
41. history - print used commands history
42. uname - print detailed information about your Linux system
43. ping - to check connectivity status to a server
44. chmod - to change permissions of files and directories
45. chown - to change ownership of files and directories
46. find - using find searches for files and directories
47. locate - used to locate a file, just like the search command in Windows
48. ifconfig - print ip address stuff
49. ip a - similar to ifconfig but shortest print
50. finger - gives you a short dump of info about a user
Follow @coder_baba
#coderbaba #linux #cmd
1. ls - view contents of directory (list)
2. pwd - path of the current directory
3. cd - change directoryn
4. mkdir - make new directory
5. mv - move files / rename files
6. cp - copy files
7. rm - remove files
8. touch - create blank new file
9. rmdir - delete directory
10. cat - list content of file to terminal
11. clear - clear terminal window
12. echo - move data into a file
13. less - Read text file one screen at a time
14. man - show manual of Linux commands
15. sudo - enables you to perform tasks that require administrative or root permissions
16. top - task manager in terminal
17. tar - used to archive multiple files into a tarball
18. grep - used to searching words in specific files
19. head - view first lines of any text file
20. tail - view last lines of any text file
21. diff - compares the contents of two files line by line
22. kill - used for killing unresponsive program
23. jobs - display all current jobs along with their statuses
24. sort - is a command line utility for sorting lines of text files
25. df - info about system disk
26. du - check how much space a file or directory takes
27. zip - to compress your files into a zip archive
28. unzip - to extract the zipped files from a zip archive
29. ssh - a secure encrypted connection between two hosts over and insecure network
30. cal - shows calendar
31. apt - command line tool for interaction with packaging system
32. alias - custom shortcuts used to represent a command
33. w - current user info
34. whereis - used to locate the binary, source, manual page files
35. whatis - used to get one-line man page description
36. useradd - used to create a new user
37. passwd - used to changing password of current user
38. whoami - print current user
39. uptime - print current time when machine starts
40. free - print free disk space info
41. history - print used commands history
42. uname - print detailed information about your Linux system
43. ping - to check connectivity status to a server
44. chmod - to change permissions of files and directories
45. chown - to change ownership of files and directories
46. find - using find searches for files and directories
47. locate - used to locate a file, just like the search command in Windows
48. ifconfig - print ip address stuff
49. ip a - similar to ifconfig but shortest print
50. finger - gives you a short dump of info about a user
Follow @coder_baba
#coderbaba #linux #cmd
โค1๐1
Don't overwhelm to learn Git,๐
Git is only this much๐๐
1.Core:
โข git init
โข git clone
โข git add
โข git commit
โข git status
โข git diff
โข git checkout
โข git reset
โข git log
โข git show
โข git tag
โข git push
โข git pull
2.Branching:
โข git branch
โข git checkout -b
โข git merge
โข git rebase
โข git branch --set-upstream-to
โข git branch --unset-upstream
โข git cherry-pick
3.Merging:
โข git merge
โข git rebase
4.Stashing:
โข git stash
โข git stash pop
โข git stash list
โข git stash apply
โข git stash drop
5.Remotes:
โข git remote
โข git remote add
โข git remote remove
โข git fetch
โข git pull
โข git push
โข git clone --mirror
6.Configuration:
โข git config
โข git global config
โข git reset config
7. Plumbing:
โข git cat-file
โข git checkout-index
โข git commit-tree
โข git diff-tree
โข git for-each-ref
โข git hash-object
โข git ls-files
โข git ls-remote
โข git merge-tree
โข git read-tree
โข git rev-parse
โข git show-branch
โข git show-ref
โข git symbolic-ref
โข git tag --list
โข git update-ref
8.Porcelain:
โข git blame
โข git bisect
โข git checkout
โข git commit
โข git diff
โข git fetch
โข git grep
โข git log
โข git merge
โข git push
โข git rebase
โข git reset
โข git show
โข git tag
9.Alias:
โข git config --global alias.<alias> <command>
10.Hook:
โข git config --local core.hooksPath <path>
โ Add more peoples to this groups ๐
#coderbaba #git follow @coder_baba
Git is only this much๐๐
1.Core:
โข git init
โข git clone
โข git add
โข git commit
โข git status
โข git diff
โข git checkout
โข git reset
โข git log
โข git show
โข git tag
โข git push
โข git pull
2.Branching:
โข git branch
โข git checkout -b
โข git merge
โข git rebase
โข git branch --set-upstream-to
โข git branch --unset-upstream
โข git cherry-pick
3.Merging:
โข git merge
โข git rebase
4.Stashing:
โข git stash
โข git stash pop
โข git stash list
โข git stash apply
โข git stash drop
5.Remotes:
โข git remote
โข git remote add
โข git remote remove
โข git fetch
โข git pull
โข git push
โข git clone --mirror
6.Configuration:
โข git config
โข git global config
โข git reset config
7. Plumbing:
โข git cat-file
โข git checkout-index
โข git commit-tree
โข git diff-tree
โข git for-each-ref
โข git hash-object
โข git ls-files
โข git ls-remote
โข git merge-tree
โข git read-tree
โข git rev-parse
โข git show-branch
โข git show-ref
โข git symbolic-ref
โข git tag --list
โข git update-ref
8.Porcelain:
โข git blame
โข git bisect
โข git checkout
โข git commit
โข git diff
โข git fetch
โข git grep
โข git log
โข git merge
โข git push
โข git rebase
โข git reset
โข git show
โข git tag
9.Alias:
โข git config --global alias.<alias> <command>
10.Hook:
โข git config --local core.hooksPath <path>
โ Add more peoples to this groups ๐
#coderbaba #git follow @coder_baba
๐4โค1
Coder Baba pinned ยซDon't overwhelm to learn Git,๐ Git is only this much๐๐ 1.Core: โข git init โข git clone โข git add โข git commit โข git status โข git diff โข git checkout โข git reset โข git log โข git show โข git tag โข git push โข git pull 2.Branching: โขโฆยป
โค1
โค1