Apart from coding and design interview questions, this page contains updates on my learnings with Java. It helps me organize my learning. Read about my future self here : https://siliconvalleystories.blogspot.com/
Friday, 8 August 2014
Thursday, 7 August 2014
All that you need to know about url and connections in Java
- Url decoding - covert
https%3A%2F%2Fmywebsite%2Fdocs%2Fenglish%2Fsite%2Fmybook.do%3Frequest_typeto
https://mywebsite/docs/english/site/mybook.do&request_type - Difference between URLs and URIs ? http://stackoverflow.com/questions/176264/whats-the-difference-between-a-uri-and-a-url/1984225#1984225
- What is the use of urlencoder.encode ?
- http://hc.apache.org/httpcomponents-client-ga/primer.html
Unicode :
Sunday, 3 August 2014
Consuming REST Services using Spring
-
RestTemplatemakes interacting with most RESTful services a one-line incantation. And it can even bind that data to custom domain types. - As you can see, this is a simple Java class with a handful of properties and matching getter methods. It’s annotated with
@JsonIgnorePropertiesfrom the Jackson JSON processing library to indicate that any properties not bound in this type should be ignored. - Because the Jackson JSON processing library is in the classpath,
RestTemplatewill use it (via a message converter) to convert the incoming JSON data into aPageobject. From there, the contents of thePageobject will be printed to the console.Here you’ve only usedRestTemplateto make an HTTPGETrequest. ButRestTemplatealso supports other HTTP verbs such asPOST,PUT, andDELETE. - http://spring.io/guides/gs/consuming-rest/
What does the spring framework do ?
- Dependency Injection
- AOP (Aspect oriented programming)
- Boiler plate coding removal
Friday, 1 August 2014
Facebook Interview Questions
- Implement division without using + - *. http://www.pixelstech.net/article/1344149505-Implementation-of-%2B---*-with-bitwise-operator http://www.geeksforgeeks.org/add-two-numbers-without-using-arithmetic-operators/
- https://oskarj.wordpress.com/tag/sillicon-valley/
- http://danielpocock.com/google-summer-of-code-data-science-machine-learning-ganglia https://www.google-melange.com/gsoc/org2/google/gsoc2014/ganglia
Thursday, 31 July 2014
Monday, 28 July 2014
Too many open files error java mac
-XX:- MaxFDLimit
Directs the VM to refrain from setting the file descriptor limit to the default maximum. The default behavior is to set the limit to the value specified by
OPEN_MAX, which is10240. Normally, this is the maximum number of files that a process may have open. It is possible, however, to increase this limit to a user-specified value with the sysctlutility. Under such circumstances, you may want to pass -XX:-MaxFDLimit to stop the Java VM from restricting the number of open files to 10240.
Subscribe to:
Posts (Atom)