------------------------------Java------------------------------------------
https://www.careerbless.com/java/basics/JavaArchitecture.php
https://www.geeksforgeeks.org/lambda-expressions-java-8/
https://www.geeksforgeeks.org/functional-interfaces-java/
https://www.mkyong.com/java8/java-8-streams-filter-examples/
http://www.vogella.com/tutorials/JavaPerformance/article.html
https://www.journaldev.com/349/java-classloader
https://www.journaldev.com/4098/java-heap-space-vs-stack-memory
https://m.wikihow.com/Increase-Java-Memory-in-Windows-7
https://www.geeksforgeeks.org/functional-interfaces-java/
https://www.geeksforgeeks.org/association-composition-aggregation-java/
https://www.techopedia.com/definition/28106/polymorphism-general-programming
https://stackoverflow.com/questions/2236599/final-keyword-in-method-parameters
https://stackoverflow.com/questions/2435163/why-can-final-object-be-modified
https://www.techopedia.com/definition/28106/polymorphism-general-programming
https://www.javatpoint.com/method-overloading-in-java
https://www.geeksforgeeks.org/overriding-in-java/
https://stackoverflow.com/questions/14228520/why-is-method-overloading-and-overriding-needed-in-java
https://www.javatpoint.com/abstract-class-in-java
https://www.geeksforgeeks.org/can-we-overload-or-override-static-methods-in-java/
https://stackoverflow.com/questions/1509785/what-are-some-practical-examples-of-abstract-classes-in-java
https://stackoverflow.com/questions/17407203/can-we-use-static-method-in-an-abstract-class
https://www.geeksforgeeks.org/using-final-with-inheritance-in-java/amp/
https://dzone.com/articles/exception-handling-in-real-life-applications
https://stackoverflow.com/questions/1509785/what-are-some-practical-examples-of-abstract-classes-in-java
https://dzone.com/articles/memory-leak-andjava-code
https://www.javatpoint.com/java-string
https://www.geeksforgeeks.org/g-fact-27-string-vs-stringbuilder-vs-stringbuffer/
http://www.techtamasha.com/difference-between-string-and-stringbufferstringbuilder-in-java/28
https://www.javatpoint.com/how-to-create-immutable-class
https://techdifferences.com/difference-between-string-and-stringbuffer.html
https://www.journaldev.com/13121/java-9-features-with-examples
https://www.journaldev.com/2389/java-8-features-with-examples


https://beginnersbook.com/2013/12/difference-between-arraylist-and-linkedlist-in-java/
https://javapapers.com/core-java/java-method-reference/
https://stackoverflow.com/questions/2265503/why-do-i-need-to-override-the-equals-and-hashcode-methods-in-java
https://stackoverflow.com/questions/22267919/iterator-vs-for
https://stackoverflow.com/questions/4138364/java-how-to-convert-list-to-map
https://stackoverflow.com/questions/22324091/what-use-is-java-6-interface-multivaluedmap
https://www.javatpoint.com/nested-interface
https://stackoverflow.com/questions/38987520/real-life-example-of-list-tuple-set-and-map
https://www.quora.com/How-is-Hashmap-in-Java-implemented-internally-What-are-the-pros-and-cons-to-use-it-What-are-the-complexities-it-provides-for-insert-delete-and-lookup/answer/Anshudeep-Bajpai?share=b53497c5&srid=uwiRf
http://www.java2novice.com/java_constructor_examples/singleton/
https://dzone.com/articles/singleton-design-pattern
https://javapapers.com/core-java/java-method-reference/
https://stackoverflow.com/questions/936197/what-is-the-difference-between-application-server-and-web-server
https://stackify.com/memory-leaks-java/
https://www.dynatrace.com/resources/ebooks/javabook/memory-leaks/
https://www.toptal.com/java/hunting-memory-leaks-in-java
https://www.geeksforgeeks.org/static-class-in-java/
https://www.geeksforgeeks.org/difference-equals-method-java/
https://dzone.com/articles/why-string-immutable-java
https://www.geeksforgeeks.org/can-we-overload-or-override-static-methods-in-java/
https://javaconceptoftheday.com/difference-between-iterator-and-listiterator-in-java/
https://javaconceptoftheday.com/differences-between-enumeration-vs-iterator-in-java/
https://stackoverflow.com/questions/451182/stopping-inheritance-without-using-final
https://stackoverflow.com/questions/32563236/relation-between-sessions-and-cookies
https://www.geeksforgeeks.org/can-we-overload-or-override-static-methods-in-java/
https://stackoverflow.com/questions/22324091/what-use-is-java-6-interface-multivaluedmap
https://javarevisited.blogspot.com/2012/05/5-difference-between-application-server.html?m=1
https://www.javatpoint.com/final-keyword
https://www.javatpoint.com/java-inner-class
https://www.quora.com/Can-we-define-a-class-inside-the-interface/answer/Ashok-Kumar-1682?share=7eb3a629&srid=uwiRf
https://stackoverflow.com/questions/5181578/what-is-the-point-of-final-class-in-java
https://stackoverflow.com/questions/8119366/sorting-hashmap-by-values
http://www.java-fries.com/2015/02/sort-elements-frequency/
https://www.mkyong.com/java/how-do-convert-array-to-list-in-java/
https://www.javatpoint.com/method-overloading-in-java
https://www.javatpoint.com/abstract-class-in-java
https://www.javatpoint.com/nested-interface
https://www.quora.com/What-is-the-purpose-of-writing-a-non-static-block-inside-a-method
https://www.quora.com/Can-a-constructor-be-declared-a-final
https://dzone.com/articles/convert-map-to-list-in-java-8
https://stackoverflow.com/questions/4138364/java-how-to-convert-list-to-map
https://www.javatpoint.com/custom-exception
https://www.geeksforgeeks.org/autoboxing-unboxing-java/
https://stackoverflow.com/questions/1036754/difference-between-wait-and-sleep
https://www.geeksforgeeks.org/hashmap-methods-java-examples-set-2-keyset-values-containskey/
https://dzone.com/articles/singleton-design-pattern-%E2%80%93
https://coderanch.com/t/609826/java/Creating-TreeMap-duplicate-key-values









https://www.geeksforgeeks.org/tag/java-multithreading/





-------------------------------Spring----------------------------------------
https://stackoverflow.com/questions/2769467/what-is-dispatcher-servlet-in-spring
https://www.quora.com/What-is-IOC-Container-in-Spring/answer/Swatee-Chand-2?share=7c9254af&srid=uwiRf
https://stackoverflow.com/questions/130794/what-is-dependency-injection
https://www.tutorialspoint.com/spring/constructor_based_dependency_injection.htm
https://www.tutorialspoint.com/spring/setter_based_dependency_injection.htm
https://www.tutorialspoint.com/spring/spring_beans_autowiring.htm
https://www.journaldev.com/2623/spring-autowired-annotation
https://stackoverflow.com/questions/8519187/spring-postconstruct-vs-init-method-attribute
https://dzone.com/articles/an-interview-question-on-spring-singletons
https://www.javatpoint.com/load-on-startup
https://stackoverflow.com/questions/243385/beanfactory-vs-applicationcontext
https://springframework.guru/spring-framework-annotations/
https://stackoverflow.com/questions/22672664/setting-request-timeout-for-jax-rs-2-0-client-api


https://javarevisited.blogspot.in/2017/06/how-spring-mvc-framework-works-web-flow.html?m=1
https://docs.spring.io/spring/docs/3.0.0.M4/reference/html/ch15s02.html
https://dzone.com/articles/spring-component-scan
https://www.tutorialspoint.com/spring/spring_bean_definition_inheritance.htm
https://stackoverflow.com/questions/8519187/spring-postconstruct-vs-init-method-attribute
https://dzone.com/articles/an-interview-question-on-spring-singletons
https://javarevisited.blogspot.in/2017/06/how-spring-mvc-framework-works-web-flow.html?m=1
http://www.baeldung.com/spring-mvc-view-resolver-tutorial
https://www.mkyong.com/spring-mvc/spring-mvc-internalresourceviewresolver-example/
https://www.tutorialspoint.com/spring/spring_qualifier_annotation.htm
https://stackoverflow.com/questions/28963639/how-to-understand-spring-componentscan
http://www.java2novice.com/spring/aop-after-returning-advice/
https://stackoverflow.com/questions/6827752/whats-the-difference-between-component-repository-service-annotations-in?rq=1
https://howtodoinjava.com/spring5/webmvc/spring-mvc-cors-configuration/


















https://dzone.com/articles/spring-boot-creating
https://www.mkyong.com/spring/spring-auto-scanning-components/
https://javarevisited.blogspot.com/2017/08/difference-between-restcontroller-and-controller-annotations-spring-mvc-rest.html
https://javaconceptoftheday.com/statement-vs-preparedstatement-vs-callablestatement-in-java/
https://stackoverflow.com/questions/45016234/what-is-idempotency-in-http-methods
https://www.geeksforgeeks.org/indexing-in-databases-set-1/
https://stackoverflow.com/questions/3887735/mysql-difference-between-char-and-varcharhttps://stackoverflow.com/questions/3887735/mysql-difference-between-char-and-varchar
https://www.journaldev.com/2676/spring-mvc-interceptor-example-handlerinterceptor-handlerinterceptoradapter
https://beginnersbook.com/2015/05/normalization-in-dbms/
http://www.xyzws.com/JSPfaq/what-is-difference-between-page-and-pagecontext-in-jsp-pages/4
https://www.baeldung.com/spring-request-response-body
https://javarevisited.blogspot.com/2017/06/how-spring-mvc-framework-works-web-flow.htmlhttps://javarevisited.blogspot.com/2017/06/how-spring-mvc-framework-works-web-flow.html





https://stackoverflow.com/questions/7021084/how-do-you-receive-a-url-parameter-with-a-spring-controller-mapping
https://www.sourceallies.com/2011/08/spring-injection-with-resource-and-autowired/
https://stackoverflow.com/questions/18540696/named-annotation-in-spring-mvc
https://www.tutorialspoint.com/springaop/springaop_after_returning1.htm

------------------------------------Rest----------------------------------------- https://stackoverflow.com/questions/2131965/main-differences-between-soap-and-restful-web-services-in-java
http://www.benchresources.net/jersey-2-x-web-service-using-queryparam-annotation/
https://www.quora.com/What-is-the-difference-between-QueryParam-and-pathParam-in-Webservices?share=ebb251a9&srid=uwiRf
http://www.techferry.com/articles/RESTful-web-services-JAX-RS-annotations.html
http://www.mkyong.com/webservices/jax-rs/restful-java-client-with-jersey-client/
https://stackoverflow.com/questions/11297471/why-are-restful-applications-easier-to-scale
https://stackoverflow.com/questions/20088759/how-rest-is-lightweight
https://stackoverflow.com/questions/10418105/what-does-representational-state-mean-in-rest
http://www.mkyong.com/webservices/jax-rs/restful-java-client-with-jersey-client/
https://stackoverflow.com/questions/2131965/main-differences-between-soap-and-restful-web-services-in-java
https://www.tutorialspoint.com/wsdl/wsdl_example.htm
https://stackoverflow.com/questions/16060372/rest-web-services-synchronous-or-asynchrous



https://restfulapi.net/http-methods/
https://dzone.com/articles/jax-rs-20-asynchronous-server-and-client
https://stackoverflow.com/questions/3105296/if-rest-applications-are-supposed-to-be-stateless-how-do-you-manage-sessions
https://blog.usejournal.com/best-practices-for-writing-angular-6-apps-e6d3c0f6c7c1
https://stackoverflow.com/questions/37460464/what-is-the-difference-between-cq5-and-aem-6-x-what-are-the-major-differences
https://stackoverflow.com/questions/33409828/touch-ui-v-s-classic-ui-in-aem
http://www.aemcq5tutorials.com/tutorials/sightly-new-features-vs-jsp-aem/
https://www.tutorialspoint.com/jsp/jsp_implicit_objects.htm
https://www.quora.com/What-is-the-difference-between-a-database-and-a-repository/answer/Karthika-80?share=d7946f60&srid=uwiRf
https://restfulapi.net/idempotent-rest-apis/









https://stackoverflow.com/questions/10500775/parse-json-from-httpurlconnection-object


https://www.mkyong.com/java/java-object-sorting-example-comparable-and-comparator/
https://www.journaldev.com/110/how-to-implement-arraylist-with-array-in-java
https://crunchify.com/how-to-implement-a-linkedlist-class-from-scratch-in-java/
https://www.geeksforgeeks.org/check-for-balanced-parentheses-in-an-expression/
https://dzone.com/articles/java-concurrency-blocking-queu
https://www.geeksforgeeks.org/comparator-interface-java/
https://www.mkyong.com/java/java-object-sorting-example-comparable-and-comparator/https://www.mkyong.com/java/java-object-sorting-example-comparable-and-comparator/
https://www.geeksforgeeks.org/object-class-in-java/
https://stackoverflow.com/questions/2361863/how-do-i-restrict-object-creation-not-more-than-3-in-java-class
http://www.java67.com/2013/07/15-java-enum-interview-questions-amswers-for-experienced-programmers.html
https://www.geeksforgeeks.org/commonly-asked-dbms-interview-questions/
https://www.geeksforgeeks.org/design-parking-lot-using-object-oriented-principles/
https://www.javacodegeeks.com/2017/10/call-asynchronous-rest.html
https://stackoverflow.com/questions/15855321/performace-of-bigdecimal-vs-biginteger-and-bigdecimal
https://www.quora.com/What-is-the-difference-between-depth-first-search-and-breadth-first-search-Why-does-DFS-visit-the-node-after-removal-from-a-stack-while-BFS-visits-the-node-before-adding-it-to-the-queue
https://www.geeksforgeeks.org/searching-for-patterns-set-2-kmp-algorithm/
https://www.geeksforgeeks.org/write-a-c-function-to-print-the-middle-of-the-linked-list/
https://www.instantssl.com/https-tutorials/what-is-https.html
https://stackoverflow.com/questions/19652554/what-is-the-advantage-of-using-threading-in-program
https://stackoverflow.com/questions/9658517/java-creating-multiple-threads-with-a-for-loop
https://stackoverflow.com/questions/33596079/how-to-properly-use-java-executor/33596230#33596230
https://stackoverflow.com/questions/40480/is-java-pass-by-reference-or-pass-by-value?rq=1
https://medium.com/exploring-code/how-to-make-the-perfect-singleton-de6b951dfdb0
https://stackoverflow.com/questions/2361863/how-do-i-restrict-object-creation-not-more-than-3-in-java-class
https://www.journaldev.com/1392/factory-design-pattern-in-java
https://www.geeksforgeeks.org/producer-consumer-solution-using-threads-java/
https://www.geeksforgeeks.org/recursive-insertion-sort/
https://stackoverflow.com/questions/29339933/read-and-write-files-in-java-using-separate-threads
https://www.geeksforgeeks.org/inner-class-java/
https://stackoverflow.com/questions/4039899/when-should-we-use-mutex-and-when-should-we-use-semaphore
https://www.javatpoint.com/java-linkedhashset
https://www.geeksforgeeks.org/frequency-substring-string/
https://stackoverflow.com/questions/767759/occurrences-of-substring-in-a-string
https://www.geeksforgeeks.org/multicatch-in-java/
https://stackoverflow.com/questions/2423622/volatile-vs-static-in-java

https://www.geeksforgeeks.org/navigablemap-interface-in-java-with-example/
https://stackoverflow.com/questions/5819638/is-random-class-thread-safe
https://stackoverflow.com/questions/10500775/parse-json-from-httpurlconnection-object
-----Threading related links---------------------- https://www.journaldev.com/1162/java-multithreading-concurrency-interview-questions-answers
https://www.journaldev.com/1069/threadpoolexecutor-java-thread-pool-example-executorservice
https://www.journaldev.com/1034/java-blockingqueue-example
https://www.journaldev.com/1650/java-futuretask-example-program
https://www.journaldev.com/1069/threadpoolexecutor-java-thread-pool-example-executorservice
https://www.journaldev.com/378/java-util-concurrentmodificationexception
https://dzone.com/articles/top-15-java-multithreading-concurrency-interview-q
http://www.java67.com/2012/09/top-10-tricky-java-interview-questions-answers.html
https://javarevisited.blogspot.com/2011/03/10-interview-questions-on-singleton.html
https://javarevisited.blogspot.com/2018/08/how-to-avoid-deadlock-in-java-threads.html
https://javarevisited.blogspot.com/2011/04/synchronization-in-java-synchronized.html
https://javarevisited.blogspot.com/2012/02/what-is-race-condition-in.html
https://javarevisited.blogspot.com/2012/02/what-is-blocking-methods-in-java-and.html
https://stackoverflow.com/questions/6507687/should-a-db-connection-be-a-singleton
https://www.geeksforgeeks.org/understanding-outofmemoryerror-exception-java/





----------------------Desigm Pattern-------------------- http://puredanger.github.io/tech.puredanger.com/2007/07/03/pattern-hate-singleton/
https://www.tutorialspoint.com/design_pattern/factory_pattern.htm
https://www.tutorialspoint.com/design_pattern/adapter_pattern.htm
https://www.tutorialspoint.com/design_pattern/facade_pattern.htm










http://www.java67.com/2014/12/how-to-synchronize-arraylist-in-java.html
https://stackoverflow.com/questions/2444005/how-do-i-make-my-arraylist-thread-safe-another-approach-to-problem-in-java
https://www.journaldev.com/1663/java-generics-example-method-class-interface
https://stackoverflow.com/questions/1885630/whats-the-difference-between-varchar-and-char
https://stackoverflow.com/questions/1693754/how-to-select-first-10-elements-from-database-using-sql
https://stackoverflow.com/questions/34109363/how-can-we-maintain-immutability-of-a-class-with-a-mutable-reference
https://stackoverflow.com/questions/44588057/what-is-the-difference-between-callable-statement-and-prepared-statement-in-sql
https://thispointer.com/java-creating-hashmap-by-associating-multiple-values-with-same-key/
https://stackoverflow.com/questions/19691920/collision-resolution-in-java-hashmap
http://www.javadude.com/articles/passbyvalue.htm
https://stackoverflow.com/questions/2863852/how-to-generate-a-random-string-in-java
https://dzone.com/articles/interface-default-methods-java
https://stackoverflow.com/questions/285793/what-is-a-serialversionuid-and-why-should-i-use-it
https://www.geeksforgeeks.org/marker-interface-java/https://www.geeksforgeeks.org/marker-interface-java/
https://sivalabs.in/2016/03/how-springboot-autoconfiguration-magic/
https://martinfowler.com/articles/microservices.html
https://www.geeksforgeeks.org/remove-element-arraylist-java/
https://www.quora.com/How-do-servlets-handle-multiple-requests
https://stackoverflow.com/questions/34266174/difference-between-arrayindexoutofboundsexception-and-indexoutofboundsexception

https://www.geeksforgeeks.org/understanding-outofmemoryerror-exception-java/





------------------------------------Build tools----------------------------------------- https://www.tutorialspoint.com/maven/maven_build_life_cycle.htm
-------------------------------------Angular--------------------------------------------- https://github.com/sudheerj/angular-interview-questions



















------------------------------------------------------------------------------------------------------------------------------------- what is blob and clob NoSuchBeanDefinitionException First he asked me to create a singleton class using different methods. Then I was asked to create a class that can have only 100 objects. 3.Inner class - program. 5.Object class methods. enum questions Write a program for linked list Write sorting any algorithm using recursion? 1.Find is the list is circuler. 6.Sort using stack. 2.File read - threading. 2. Singleton desighn pattern with thread safe Write a Thread implementing producer-consumer scenario. 4.producer consumer program. on c programming like sorting, and networking protocol dhcp In the second round they asked few logical questions and simple code to display right nodes of a tree and few SQL queries and basic servlet jsp questions 3)Design car parking system DBMS(Normalization, ER Diagram) SQL 6.Sort using stack. 1.Spring dependency for oracle database in configuration file. 5)Write Async Rest program 1)JSP implict objects 2)Difference between page and pagecontext 6)Explain about agile practice in ur team
conter12
stream internal udee of two object tomcat security pl sql why sql not plm sql tightly coupling s[ring spring boo pull ab fetch tomcat security

package com.amcat;

import java.text.NumberFormat;
import java.util.Locale;

public class NumbersTOWord {

public static String numToWord(Integer i) {

final String[] units = { "Zero", "One", "Two", "Three",
"Four", "Five", "Six", "Seven", "Eight", "Nine", "Ten", "Eleven",
"Twelve", "Thirteen", "Fourteen", "Fifteen", "Sixteen",
"Seventeen", "Eighteen", "Nineteen" };
final String[] tens = { "", "", "Twenty", "Thirty", "Forty",
"Fifty", "Sixty", "Seventy", "Eighty", "Ninety" };

if (i < 20)
return units[i];
if (i < 100)
return tens[i / 10] + ((i % 10 > 0) ? " " + numToWord(i % 10) : "");
if (i < 1000)
return units[i / 100] + " Hundred"
+ ((i % 100 > 0) ? " and " + numToWord(i % 100) : "");
if (i < 1000000)
return numToWord(i / 1000) + " Thousand "
+ ((i % 1000 > 0) ? " " + numToWord(i % 1000) : "");
return numToWord(i / 1000000) + " Million "
+ ((i % 1000000 > 0) ? " " + numToWord(i % 1000000) : "");
}
public static void main(String[] args) {

System.out.println(numToWord(101));

}

 

}

package com.amcat;

public class Balancedparanthesis {
static class stack {
int top = -1;
char items[] = new char[100];

void push(char x) {
if (top == 99) {
System.out.println("Stack full");
} else {
items[++top] = x;
}
}

char pop() {
if (top == -1) {
System.out.println("Underflow error");
return '\0';
} else {
char element = items[top];
top--;
return element;
}
}

boolean isEmpty() {
return (top == -1) ? true : false;
}
}

static boolean isMatchingPair(char character1, char character2) {
if (character1 == '(' && character2 == ')')
return true;
else if (character1 == '{' && character2 == '}')
return true;
else if (character1 == '[' && character2 == ']')
return true;
else
return false;
}

/*
* Return true if expression has balanced Parenthesis
*/
static boolean areParenthesisBalanced(char exp[]) {

stack st = new stack();

for (int i = 0; i < exp.length; i++) {

if (exp[i] == '{' || exp[i] == '(' || exp[i] == '[')
st.push(exp[i]);
if (exp[i] == '}' || exp[i] == ')' || exp[i] == ']') {
if (st.isEmpty()) {
return false;
}

else if (!isMatchingPair(st.pop(), exp[i])) {
return false;
}
}

}

if (st.isEmpty())
return true; /* balanced */
else { /* not balanced */
return false;
}
}

public static void main(String[] args) {
char exp[] = { '{', '(', ')', '}', '[', ']' };
if (areParenthesisBalanced(exp))
System.out.println("Balanced ");
else
System.out.println("Not Balanced ");
}

}

package graph; import java.util.Scanner; import java.util.ArrayList; import java.util.Random; class TSTNode { char data; boolean isEnd; TSTNode left, middle, right; public TSTNode(char data) { this.data = data; this.isEnd = false; this.left = null; this.middle = null; this.right = null; } } class TernarySearchTree { private TSTNode root; private ArrayList al; public TernarySearchTree() { root = null; } public boolean isEmpty() { return root == null; } public void makeEmpty() { root = null; } public void insert(String word) { root = insert(root, word.toCharArray(), 0); } public TSTNode insert(TSTNode r, char[] word, int ptr) { if (r == null) r = new TSTNode(word[ptr]); if (word[ptr] < r.data) r.left = insert(r.left, word, ptr); else if (word[ptr] > r.data) r.right = insert(r.right, word, ptr); else { if (ptr + 1 < word.length) r.middle = insert(r.middle, word, ptr + 1); else r.isEnd = true; } return r; } public boolean search(String word) { return search(root, word.toCharArray(), 0); } private boolean search(TSTNode r, char[] word, int ptr) { if (r == null) return false; if (word[ptr] < r.data) return search(r.left, word, ptr); else if (word[ptr] > r.data) return search(r.right, word, ptr); else { if (r.isEnd && ptr == word.length - 1) return true; else if (ptr == word.length - 1) return false; else return search(r.middle, word, ptr + 1); } } public String toString() { al = new ArrayList(); traverse(root, ""); return "\nTernary Search Tree : " + al; } private void traverse(TSTNode r, String str) { if (r != null) { traverse(r.left, str); str = str + r.data; if (r.isEnd) al.add(str); traverse(r.middle, str); str = str.substring(0, str.length() - 1); traverse(r.right, str); } } int getLeafCount() { return getLeafCount(root); } int getLeafCount(TSTNode node) { if (node == null) return 0; if (node.left == null && node.middle==null && node.right == null ) return 1; else return getLeafCount(node.left) +getLeafCount(node.middle)+ getLeafCount(node.right); } } public class TernarySearchTreeTest { private static String getRandomString() { int leftLimit = 97; // letter 'a' int rightLimit = 122; // letter 'z' int targetStringLength = 3; Random random = new Random(); StringBuilder buffer = new StringBuilder(targetStringLength); for (int i = 0; i < targetStringLength; i++) { int randomLimitedInt = leftLimit + (int) (random.nextFloat() * (rightLimit - leftLimit + 1)); buffer.append((char) randomLimitedInt); } String generatedString = buffer.toString(); return generatedString; } public static void main(String[] args) { TernarySearchTree tst = new TernarySearchTree(); Scanner sc = new Scanner(System.in); int noOfTests = sc.nextInt(); while (noOfTests > 0) { int noOfTree = sc.nextInt(); while (noOfTree > 0) { tst.insert(getRandomString()); noOfTree--; } noOfTests--; } System.out.println("No of Leaf count : "+tst.getLeafCount()*3); } } package graph; class Node { int data; Node left, right; public Node(int item) { data = item; left = right = null; } } public class BinaryTreeWithLeaf { Node root; int getLeafCount() { return getLeafCount(root); } int getLeafCount(Node node) { if (node == null) return 0; if (node.left == null && node.right == null) return 1; else return getLeafCount(node.left) + getLeafCount(node.right); } public static void main(String args[]) { BinaryTreeWithLeaf tree = new BinaryTreeWithLeaf(); tree.root = new Node(1); tree.root.left = new Node(2); tree.root.right = new Node(3); tree.root.left.left = new Node(4); tree.root.left.right = new Node(5); System.out.println("The leaf count of binary tree is : " + tree.getLeafCount()); } } package graph; import java.util.Random; public class TernaryLeafCount { TSTNode root; int getLeafCount() { return getLeafCount(root); } int getLeafCount(TSTNode node) { if (node == null) return 0; if (node.left == null && node.middle==null && node.right == null ) return 1; else return getLeafCount(node.left) +getLeafCount(node.middle)+ getLeafCount(node.right); } public static void main(String args[]) { TernaryLeafCount tree = new TernaryLeafCount(); tree.root=new TSTNode('a'); tree.root.left=new TSTNode('b'); tree.root.middle=new TSTNode('c'); tree.root.right=new TSTNode('d'); tree.root.left.left=new TSTNode('e'); tree.root.left.middle=new TSTNode('f'); tree.root.left.right=new TSTNode('g'); ; System.out.println("The leaf count of binary tree is : " + tree.getLeafCount()*3); } } https://www.javacodegeeks.com/2013/04/how-to-install-gradle-2.html#
https://spring.io/guides/gs/client-side-load-balancing/#initial
https://dzone.com/articles/buiding-microservice-using-spring-boot-and-docker
https://dzone.com/articles/microservices-using-spring-boot-amp-spring-cloud-p
https://www.onlineinterviewquestions.com/angular-js-interview-questions/
================================================ https://www.journaldev.com/1377/java-singleton-design-pattern-best-practices-examples https://stackoverflow.com/questions/4687271/jax-rs-how-to-return-json-and-http-status-code-together# http://www.java67.com/2014/12/how-to-break-from-nested-loop-in-java.html https://stackoverflow.com/questions/2136119/using-the-jersey-client-to-do-a-post-operation https://stackoverflow.com/questions/13750010/jersey-client-how-to-add-a-list-as-query-parameter https://stackoverflow.com/questions/18983185/how-to-create-correct-jsonarray-in-java-using-jsonobject https://stackoverflow.com/questions/40934274/how-to-pass-header-information-as-key-value-pair-to-consume-rest-service-using-j https://www.geeksforgeeks.org/arrays-in-java/ print a given matrix in spiral form how to print 1 3*2 4*5*6 10*9*8*7 https://stackoverflow.com/questions/767759/occurrences-of-substring-in-a-string http://www.javainterviewpoint.com/jax-rs-rest-produces-both-xml-and-json-example/ https://stackoverflow.com/questions/3105296/if-rest-applications-are-supposed-to-be-stateless-how-do-you-manage-sessions how cread is handed in server side https://stackoverflow.com/questions/46898/how-to-efficiently-iterate-over-each-entry-in-a-java-map?rq=1 Cloning Classes and objects super keyword Serialization Jsp attribute Include difference in Jsp Struts life cycle Struts configuration initialization JSF validation Cancel button no validation Class. For name in details Callable statements Procedure call from java Modifiers in java Protected class Singleton design pattern in detail Exceptions in java What is the purpose of garbage collection in Java, and when is it used? so so easy java and spring . What is the purpose of garbage collection in Java, and when is it used? The purpose of garbage collection is to identify and discard objects that are no longer needed by a program so that their resources can be reclaimed and reused. A Java object is subject to garbage collection when it becomes unreachable to the program in which it is used. 2. Describe synchronization in respect to multithreading. With respect to multithreading, synchronization is the capability to control the access of multiple threads to shared resources. Without synchonization, it is possible for one thread to modify a shared variable while another thread is in the process of using or updating same shared variable. This usually leads to significant errors. 3. Explain different way of using thread? The thread could be implemented by using runnable interface or by inheriting from the Thread class. The former is more advantageous, 'cause when you are going for multiple inheritance.the only interface can help Past work experience learnings,how did you come of the difficult situation http://java.scjp.jobs4times.com/ https://www.quora.com/Where-can-I-find-the-best-tutorial-of-Java-multithreading https://medium.com/theskyisblue/java-multithreading-notes-10-7023a6f43546 https://medium.com/@gary1994613 http://www.periodicooficial.oaxaca.gob.mx/files/2011/05/EXT02-2011-05-19.pdf http://www.waytoeasylearn.com/2016/08/threads-and-concurrency-tutorial.html https://www.geeksforgeeks.org/builder-pattern-in-java/ Resignation-Raj Kumar Mishra(754131) I would like to inform you that I am resigning from my position as Technology Analyst from Infosys Company, effective on September 3, 2018. Thank you for the support and the opportunities that you have provided me during my tenure.I have truely enjoyed working with Infosys and am more than grateful for the encouragement you have given me in pursuing my professional and presonal growth objective. I am proud to have been part of such an outstanding team.Please let me know what to do next for smooth transition. https://www.geeksforgeeks.org/return-maximum-occurring-character-in-the-input-string/ https://stackoverflow.com/questions/30853658/jersey-2-x-does-not-contain-webresource-and-resource-class-what-can-i-use-inste why we write client.destroy() ? groupBy and having union and union all why singleton used in db? use of inner class ThreadPoll creation System.out.format compare and compareTO method generic method construction default method use inheritance and exceptions https://www.geeksforgeeks.org/multicatch-in-java/ https://stackoverflow.com/questions/2169732/most-efficient-solution-for-reading-clob-to-string-and-string-to-clob-in-java https://stackoverflow.com/questions/8654141/convert-byte-to-string-in-java 0------------------------------------------------------------ https://www.baeldung.com/spring-cloud-netflix-eureka https://www.baeldung.com/rest-template bufferreader and Input buffer reader difference. question related to DB logginf how to create corn job etc. Maven build lifecycle locater and how to use xpth designing GMAIL login page success and failure scenarios. binary Search Program https://www.geeksforgeeks.org/binary-search/ program to print common number for two arrays and storing to the third array. https://www.geeksforgeeks.org/union-and-intersection-of-two-sorted-arrays-2/ https://www.geeksforgeeks.org/find-union-and-intersection-of-two-unsorted-arrays/ finding the intersection of rectangles https://javarevisited.blogspot.com/2016/10/how-to-check-if-two-rectangle-overlap-in-java-algorithm.html https://javarevisited.blogspot.com/2013/06/how-to-add-two-integer-numbers-without-plus-arithmetic-operator-java-example.html Implement a cache application in java. Which stores student results information rank wise. https://crunchify.com/how-to-create-a-simple-in-memory-cache-in-java-lightweight-cache/ List out the employees details whose comulative salary(sum of the salary of all months) is greater than or equal to 300. Project details of each employee month wise. HashMaps do not guarantee order. Use a LinkedHashMap if you want to preserve order of insertion. .In which order data will be stored in hashmap.? How you maintain singleton object for cache object(question asked in written to create cache mechanism). https://www.baeldung.com/spring-cloud-netflix-eureka\ tracking the max number from stream od numbers calculate max difference in unosrted array binary tree traversal Explain the architecture/workflow of the project from end to end Related to a algorithm implemented using Multithreading JPMC hirevue System design for high availability systems. Data structures, specifically binary tree. Java basics, Concurrency, Garbage collection. Tools- Jenkins, Git, SVN. Design Patterns and principles Sorting in a distributed systems. Min Heap implementation how to implement linkedhashmap ? how to use two threads to print ping pong? Interview for position of Oracle PL/SQL Development: Performance Tuning features of 11G Day to day usage related questions questions from scjp How garbage collection works in java? What are java collections? Exception handling and simple ques. 1st Round: Find the missing number from 1..n numbers in an array How to write a spring mvc project. Why you want to join JPMC? ----------------------------------------------------------LR1 interview questions 1. Tell me about your self and technical background.? 2. Is it development project or production support.? How much time your spend on writting code.? 3. What is the solution you written for problem written test, can you once? 4. Why you used treemap in the solution here instead of hashmap? 5. In which order data will be stored in hashmap.explain? 6. How you maintain singleton object for cache object(question asked in written to create cache mechanism). 7. When there are multiple synchronized methods in one class. Is it possible multiple threads access different methods parallally.? Where exactly lock happends.? Answer 8. How many objects of a servlet will be created by app server.? 9. You are saying only one object will be created, then how it handle multiple requests at the sametime.? 10.What is the difference between branch and tag.? 11.Asked one question in junit. I donnot remember it. 12.What is the use of spring. Which scope used in your project mostly in spring.? 13.Where you used singleton scope and where you used prototype.? 14. What are the linux commands you know.? I said ps command 15. How you configm server is up or down by using ps command LR2 interview questions: Mr Kundan taken LR2, It was skype interview. 1. In which are you are strong in core java.? 2. Java is call by reference or call by value.? Shown some code snippets and asked expected output(Related to call by value). StringBuffer sbf=new StringBuffer(“A”); sbf.append(“B”); sysout(sbf); —>1 callme(sbf); sysout(sbf); —>2 public void callme(StringBuffer sbf){ sbf.append(“X”); sysout(sbf); —->3 } What will be print in above statements.? What will happen if we declare sbf as final variable. 3. What will happen if you declare static variable as final. 4. final StringBuffer sbf=new StringBuffer(“A”); sbf.append(“B”); sysout(sbf); —>1 callme(sbf); sysout(sbf); —>2 public void callme(StringBuffer sbf){ sbf=new StringBuffer(“Y”); sbf.append(“X”); sysout(sbf); —->3 } What is the output of above program. 5. class A{ public static void method1(){ sysout(“class A method1”); } } class B extends A{ public static void method1(){ sysout(“class B method1”); } main(){ A a=new B(); a.method1();–>1 B b=new B(); b.method1();–>2 B b1=new A(); b1.method1();–>3 } } 6. How you write immutable object.? 7. How to increase the heapsize of your app server jvm.? -Xms 8. What is the heap size of your jvm? 9. How you decide required heap size for your application.? 10.Is arrylist threadsafe.? 11. How to get threadsafe arralist.? I said Collections.getsynchronizedArrayList(list). 12. Collections.getsynchronizedArrayList(list) gaurantee the threadsafty of arraylist.? 13. int a=(Integer)al.get(0)/b; What are the exceptions can come by executing above program and what is the hierarchy we have to follow while catching. 14. When we have to follow exception hierarchy in catch block. 15. How one servlet is able to handle multiple requests and what is the care we have to take while writting servlets.? 16. What are the linux commands you know.? 17. What are the new features in java 1.8 18. I have value 0 in multiple palces of arraylist.How you remove 0 from arraylist. lineList.removeAll(Collections.singleton(0)); ---------------------------------- design document and requirement document --------------------------------------------------------- ---------------------------------------------------------------------------------------------------------------------------------------- webtarget and webresources http://www.java2novice.com/data-structures-in-java/linked-list/doubly-linked-list/ =====================================