Posts

Java Developer Interview Checklist 2022

 Questions asked in the interview Java 8 interview questions -interviewbit.com/java-8-interview-questions/ Core Java interview questions -interviewbit.com/java-interview-questions/ Java interview questions Design pattern interview questions SQL Interview questions -https://www.javatpoint.com/sql-interview-questions Spring boot interview questions Microservices Interview Questions Spring and Hibernate interview questions Programming practice questions

Questions Asked in Interview

 core java interview questions: 1. what is difference between callable and runnable- revise multi threading- DISCUSS to return anything from thread we use callable, whatever we want to return  2. what is bloking queue 3. how to stop hashing collision-revise collection framework- DISCUSS hashing collision:  4. what is load factor of hashmap- 0.75f (75% of the map size). 5. what is default size of hashmap-16 6. what is builder design pattern- revise design pattern- DISCUSS It is used to construct a complex object step by step and the final step will return the object. Consider the construction of a home. Home is the final end product (object) that is to be returned as the output of the construction process.  It will have many steps like basement construction, wall construction, and so on roof construction. Finally,  the whole home object is returned. Here using the same process you can build houses with different properties. 7. how to create immutable class- revise string class Immutable

Java Practice Programs

 1. Swap two numbers. Given number a=10, b=20. Expected output a=20, b=10. --logic 1: create a temprory variable --logic 2: using plus and minus  a=a+b; b=a-b; a=a-b; --logic 3: multiplication and division operator, only when a and b are non zero a=a*b; b=a/b; a=a/b; Note: what is XOR operator 2. Reverse a given number. Given number is 1234. Expected output 4321 or reverse a number using stirng buffer and string builder class Note: What is scanner class in java? How to take input from scanner class in java Note: What is difference between modulo % division and division / Note: Revise java String class and its method 3. reverese a given string Note: what is charAt() method Note: what is toCharArray() method 4. how to check number is palindrome or not// use the logic used in question 2 hint: revers the number and compare with original number 5. how to check string is palindrome or not// use the logic used in question 3 hint: reverse the string and compare with original string.  Note: wha

Java 8 Notes

 Reference link: youtube.com/watch?v=oNdMigiwzlU&t=227s- java 8 programming questions https://www.youtube.com/watchv=QRwG9X9l6xI&list=PLsyeobzWxl7qbvNnJKjYbkTLn2w3eRy1Q-  -----------what is lamda expression/how to write lamda expression exampl1: ()->{SOPL("Hello")}--curly braces is optional when one line is written example 2: (a,b)->{sopl(a+b)}---compiler can guess the data type example: 3 n->n*n--when only one input parameter then parenthesis is optional, and return is not required if you are not using curly braces. example : 4 s-> s.length; -----------------------calling the lamda function/Functional Interface-------------------------- what is lamda expression : lamda expression is nothing but anonymous function -no name - no modifier - no return type - special arrow symbol how to write lamda expression  what is the functional interface n->return n*n; ---invalid n->{return n*n;};----valid n-> {return n*n};----invalid n->{n*n;};------invalid n

How to get Job at Google?

  Guide To Preparing for the Google Technical Interview: https://www.linkedin.com/pulse/my-guide-preparing-google-technical-interview-anthony-mays/

Steps to create a sample Ionic Application or Hybrid Mobile Application

Below are the steps to create a sample Ionic Application or Hybrid Mobile Application: 1. Prerequisite: You should have node and angular cli installed in your system 2.  Install Ionic CLI npm install -g ionic 3. Install Cordova npm install -g ionic cordova 4. Creating a sample ionic application: ionic start <app-name> <template> ionic start HelloWorld tabs 5. Running the application: go to the application directory cd HelloWorld ionic serve 6. Ionic application Testing on Android and IOS: ionic cordova build android <to generate the apk file for android device> ionic cordova run android <to directly on the device if it is connect to the computer> ionic cordova build ios Below are some useful commands: ionic cordova platform -a ionic cordova platform list ionic cordova platform add android@6.3.0 Note: For reference read this: https://ionicframework.com/present-ionic

Steps to create a Sample Angular Application

Below are the steps to create a sample Angular Application: 1. Download Nodejs https://nodejs.org/en/download/ 2. Setting the npm path 3. Install the Angular CLI, using the below command in node command prompt npm install -g @angular/cli 4. Creating the first application in node command prompt, using the below command: ng new HelloWorld 5. Running the application: Go to the application directory, cd HelloWorld and then run the below command: ng serve Congratulations!!