Browsed by
Author: priya

Why main() in java is declared as public static void main? What if the main method is declared as private?

Why main() in java is declared as public static void main? What if the main method is declared as private?

Public – main method is called by JVM to run the method which is outside the scope of project therefore the access specifier has to be public to permit call from anywhere outside the application static – When the JVM makes are call to the main method there is not object existing for the class being called therefore it has to have static method to allow invocation from class. void – Java is platform independent language therefore if it will…

Read More Read More

Rahul Roy

Rahul Roy

Rahul began his acting career in the 1990 film Aashiqui, a Mahesh Bhatt production as the lead actor with newcomer Anu Agarwal. The film was a hit and made him a popular actor and was the reason, he is known for. He was one of the first ever Hindi film actors who fashioned the long hair. Aashiqui turned Rahul Roy into an icon for the youths. His good looks, coupled by his trend setting way of dressing turned him into…

Read More Read More

Paresh Rawal

Paresh Rawal

Paresh Rawal was born in Paliyad, Gujarat. He completed his studies from Narsee Monjee Institute of Management and Higher Studies, Vile Parle, Mumbai. He shifted to Mumbai in 1922 where he worked tirelessly to become a civil engineer. Paresh Rawal was a big fan of Rahil Shah and worked for 10 long years under his guidance. Paresh Rawal began his journey in the film industry in the year 1984 in the film Holi directed by Ketan Mehta. He then made…

Read More Read More

Anupam Kher

Anupam Kher

Anupam Kher was born into a Kashmiri Pandit family, and lived in Shimla and did his schooling from D.A.V. School in Shimla. He is an alumni and former chairperson of the National School of Drama. Some of his early acting was in plays performed at Himachal Pradesh University. He made his acting debut in the 1982 Hindi movie Aagman. Then in 1984 came Saaransh, where he played a retired man who has lost his son. He hosted TV shows such…

Read More Read More

Om Puri

Om Puri

Om Puri born on October 18, 1950 is a highly regarded and renowned Indian actor. In the course of time, he is fast emerging as India’s first truly International star and the world seems to have woken up to Puri’s versatility. He was born at Ambala, Haryana. For Om Puri (or Guddu, his childhood name) career in theatre began early in school at Sinnaur, near Patiala. His maiden venture was Zaildar by Kapoor Singh Ghuman. In college he did several…

Read More Read More

Arbaaz Khan

Arbaaz Khan

Arbaaz Khan was born as second son into a family with strong ties to the Bollywood film industry; his father is Salim Khan, a successful screenwriter, and his mother is Salma Khan (Sushila Charak), while his stepmother is dancer and Bollywood actress Helen. He is the brother of renowned actor Salman Khan and actor-producer Sohail Khan. He has one sister Alvira Khan and an adopted sister Arpita Khan. Arbaaz made his debut in the 1996 film Daraar where he gave…

Read More Read More

Dino Morea

Dino Morea

Dino Morea, Gladrags Supermodel of 1999, who turned an actor. He is 6’0″ tall and was born on 9th December 1975. Born to an Italian father and Indian mother. He finished his schooling from Bangalore Army School and Clarence School. And college from St Joseph’s Bangalore. Prasad Bidappa introduced him to modeling. His die-hard looks and cute smile are still a hot assets on the ramp. This new generation bollywood actor also featured in music videos including those of ‘Alisha’…

Read More Read More

How much subclasses you can maximum in Inheritance?

How much subclasses you can maximum in Inheritance?

In one of our old JAVA projects we had an inheritance depth of five. Believe us we never liked that code. It’s bad to have a huge inheritance depth. A maintainable inheritance depth should be maximum 5. Anything above that is horrible. There is no limit as such specified anywhere that there is some limit on the inheritance sub classing but depending on environments you will get stack over flow error.

Naseeruddin Shah

Naseeruddin Shah

Born in 1950 and educated at the National School of Drama in Delhi, Naseeruddin Shah is now one of the icons of New Indian Cinema along with Smita Patil, Shabana Azmi and Om Puri; indeed, he is arguably one of the finest actors in the world today, though the nature of world culture is such that the most mediocre American actors are more widely known around the world. Though his use of hesitant speech and casual gesture to signify psychological…

Read More Read More

What’s the main difference between ArrayList / HashMap and Vector / Hashtable?

What’s the main difference between ArrayList / HashMap and Vector / Hashtable?

Vector / HashTable are synchronized which means they are thread safe. Cost of thread safe is performance degradation. So if you are sure that you are not dealing with huge number of threads then you should use ArrayList / HashMap.But yes you can stillsynchronize List and Map’s using Collections provided methods :- List OurList = Collections.synchronizedList (OurList); Map OurMap = Collections.synchronizedMap (OurMap);