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....
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- revis...
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 ...
Comments
Post a Comment