Posts

Type Inference in JAVA

Many developers think that type inference is introduced in java in JDK 10 (March, 2018)  release but since JDK 5 java has Type Inference mechanism. The Local type Inference is presented in JDK 10. First of all , What is Type Inference? Type inference  refers to the automatic detection of the datatype of a variable, done generally at the compiler time. Example of type inference, JDK 5, If Type Inference is not applied by the compiler then we have to cast the element into specific type.Like in example, List<String> names = new ArrayList<String>(); names.<String>add("Yash"); names.<String>add("Parikh"); System.out.println(names); But,We don't need to cast because of Type Inference. List<String> names = new ArrayList<String>(); names.add("Yash"); names.add("Parikh"); System.out.println(names); After that In JDK 7 , Diamond Operator bro...

Atal Bihari Bajpai.....10 Untold Facts

Image
1) Turned off the TV so angry: When Atalji was ill for nine years and the body was paralyzed, he often used to watch TV. He also saw some election results in 2014, on TV. They did not speak, but the gossip coming on their faces would tell their reaction about the news. Family members and supporters used to read them in the newspaper. Once the proceedings of the house were being broadcast on the TV, then when someone stopped the TV, Atalji became angry like children.Later, when the TV was turned on again, there was a smile on his face. When old films were coming on TV they used to watch it silently. 2) Used to go to Parliament on foot: LK Advani once described Dainik Bhaskar as an anecdote of 1957. Then Atalji became the first MP BJP leader Jagdish Prasad Mathur and Atalji lived together in Chandni Chowk. They used to come to the Parliament on foot. After six months, when Atalji asked to walk with Rickshaw, Mathurji was surprised. On that day he got a six-month salary as a MP....

Adig...Amar....Atal....1924-2018

Image
Atal Bihari Vajpayee (25 December 1924 – 16 August 2018) was an iconic leader of the Bharatiya Janata Party (BJP), known for his cultural moderation, liberalism and political reasonableness. He became the Prime Minister of India thrice – first in 1996 when he served the term for 13 days, second in 1998 for a period of eleven months, and third time in 1999 for a full term of five years. It was during his tenure that India successfully conducted nuclear tests at Pokhran and renewed hopes for peace between India and Pakistan emerged with the start of the New Delhi-Lahore bus service. His government has been till date the only non-Congress government to stay in power for five years. Besides being a seasoned politician and outstanding parliamentarian, Atal Bihari Vajpayee was also a renowned poet and a highly popular personality across the political spectrum. He was conferred Bharat Ratna, India’s highest civilian honour in 2015. The Modi Government has declared his birthday i,e 2...