Sep 11, 2016

Java Interview Questions - Basics

Java Interview Questions

You will find lot of basic interview questions in google. I am presenting the questions which I gathered over a period of time.

Some theory questions:
  1. What is a class? What is an object?
  2. What OOP concepts are implemented in Java? etc..
  3. I have an array with duplicate elements? Suggest an algo to get non-duplicate values from that array?
  4. What are pre-defined data-structures available in Java?
  5. How you implement linked list?
  6. What is overloading? Explain with real world example?
  7. What is overriding? Explain with real world example?
  8. What is inheritance? Why you need it? State an example.
  9. What is interface? Why you need it and how you use in Java?

Nov 13, 2012

Bus service from Bangalore to Produttur, Andhra Pradesh

For those who want to travel to Produttur, Andhra Pradesh from Bangalore, in the early morning, there are buses available between 5:00 AM and 6:00 AM. In the one hour, 2-3 buses of APSRTC(one direct and others are till Kadapa) and 1 bus of KSRTC till Kadapa. From Kadapa, there are plenty of buses to Produttur and the expected journey time is 60-90mins. 

Recently, I had to travel to Produttur to attend one family function. I decided to travel by car. But last minute, I decided to travel by bus. I boarded KSRTC bus at 6:00 AM that goes till Kadapa. Conductor promised me to reach by 11:30 AM. And, the driver did it!!! :-) I got surprised. Usually, day-time buses have few passengers and the buses are expected to be stopped in any possible places on the way.

Total distance from Bangalore to Kadapa is ~250kms (Map). Till Chintamani, the ride was very slow and stopped for breakfast for ~20mins. After that, bus picked the speed and crossed every possible bus on the road on that day. May be something was to do with the breakfast :-). I reached Kadapa sharp 11:30AM. I boarded Produttur bus from there and reached around 1:00PM. What a ride!!!

JVM Internals

I wanted to learn (new topics and refresh old ones) from quiet sometime. Last weekend, I was goggling for interesting articles for this topic. I found the link - http://www.cubrid.org/blog/dev-platform/understanding-jvm-internals/ - interesting.

I liked the approach of the author - simple and crisp. He presented a common problem and then show how it is related to a concept in JVM internals. 

After reading the post, one should appreciate the concept of "Abstraction". > Java language users are abstracted from JVM internals. > Java VM developers are abstracted from language users and Machine language. Also, the concept of extension in JVM helped many vendors to come up with better web-containers. Overall, it is a very good read..Enjoy..

Sep 29, 2011

Weekend Movie: Engeyum Eppodum (Tamil)

After a little gap of weekend movie going, this weekend I watched "Engeyum Eppodum" (Any where, any time), Tamil movie. Posters and Trailers convey that it is an yet another feel-good-factor-love-story with two couples and may be with different climax, as off-beat Tamil movies are famous for. But I was completely wrong. It is a love story with serious message for everyone of us. That is speed thrills but kills. You should be very very careful when driving on highways. All it takes is a split second to save a life or loose a life.

Movie starts with bus station atmosphere. Then moves on to love story of Ananya and Sadanand. This love story is simply superb especially the scenes where Ananya cross-checking what her cousin-sister told and finally giving gyan to Sadanand when he drops her at home.

Next is the love story between Jai and Anjali. Again, this love story is very different one, a typical love story happens in those places. Anjali plays bold nurse character, which is little bit different from Angadi Teruvu. Innocent lover character suited for Jai. Comedy scenes between this pair is hilarious.

Good to see established directors are venturing into production and giving chances to their assistant directors. Shankar did it with Eeram and other movies. And now A.R.Murugadoss with Engeyum Eppodum...

Overall, Engeyum Eppodum is 2 love stories with strong message to people and at times very slow and little boring. Songs are apt for situations and good picturization added more color to them. With this I sign off now. See you in next post. Thanks..

Jul 31, 2011

Practical Leadership Lesson from Dr. Srikumar Rao

My friend posted a video link few days back. I thought its usual practice from him to post all sorts of videos. But this video is something different, I felt. It is Leadership@Google event's video in which Dr. Srikumar Rao presented simple, practical and doable activities to improve personal effectiveness and overall our lives.

The video is available at: http://www.youtube.com/watch?v=u20vVbhpM50&feature=player_embedded#at=16.

Prof. Rao talks about few things such as mental chatter, mental model, seeing alternative reality and constant improvement tips and tools. I quickly remembered this line from Robin Sharma's book - The Monk Who Sold His Ferrari - "What you see before you or what you see behind you is nothing more than what you see inside.". Yes, our world first gets created inside us and it manifests in out side world. For example, one day I experienced a very bad traffic in 3 places on my commute. I was frustrated and angry. And the situations and people whomever I met that day were in the same order. Later when I introspected I realized the fact. Next day, I kept my self cool and was listening my favorite number in audio system and kept telling "I am cool. I will make this day really fantastic". End of the day, I felt calm and happy moods all through the day to remember. My point is keep trying to make our lives happier. It is slow and long process. But never give-up..
With that note, I am closing this blog. If you like this post, I will be glad to see your comments.

Feb 8, 2011

The era of cheap capital draws to a close
Very good article about how cheap capital that fuelled growth in emerging countries will start seeing slow end. Because developed countries are moving to savings mode after great depression. Take a look: The era of cheap capital draws to a close