Is diary writing a good habit at night?

Ridhi Arora
Updated on 30-Jul-2019 22:30:24
Diary-keeping is a boon for many people. If one is a busy businessman, one may not remember everything, so in that case, diary making is a habit with immense benefits. Some people intend to write things that have happened in their life daily. This is also good so that when one reads it after some years one will definitely relish it.In today’s busy world, IT professionals have a number of tasks to do. They need to keep informed of the projects, flowcharts, data etc. In that case, also, this is beneficial. It is good because whatever stresses are in life can ... Read More

Why we mention in MySQL WHERE 1=0?

George John
Updated on 30-Jul-2019 22:30:24
The condition 1=0 can be used to stop the query from returning any rows. It returns empty set.The syntax is as follows:SELECT *FROM yourTableName WHERE 1=0;To understand the above syntax, let us create a table. The query to create a table is as follows:mysql> create table ConditionDemo    -> (    -> Id int NOT NULL AUTO_INCREMENT,    -> Name varchar(10),    -> PRIMARY KEY(Id)    -> ); Query OK, 0 rows affected (0.59 sec)Insert some records in the table using insert command. The query is as follows:mysql> insert into ConditionDemo(Name) values('Larry'); Query OK, 1 row affected (0.10 sec) mysql> ... Read More

Supreme Court judgment on Sabarimala is disappointing for dedicated devotees.

Prasanna Kotamraju
Updated on 30-Jul-2019 22:30:24
The Supreme court's verdict on allowing women of all ages into the shrine of Sabarimala has come as a disappointment to millions of devotees of Ayyappa. Women between the age of 10 - 50 (basically the menstruating age) are prohibited into the temple to protect the deity's celibacy. One should understand that the restriction is imposed by the religion (or practiced for the past 1000 years) because of the nature of the deity worshipped there and not because of any discriminatory attitude towards women.There are many religions who practice such discrimination towards women in particular areas. They should be respected ... Read More

NavigableSet Class higher() method in Java

Samual Sam
Updated on 30-Jul-2019 22:30:24
The higher() method in NavigableSet returns the least element strictly greater than the given element i.e. 35 here −higher(35);The following is an example to implement the higher method in Java −Example Live Demoimport java.util.NavigableSet; import java.util.TreeSet; public class Demo { public static void main(String[] args) { NavigableSet set = new TreeSet(); set.add(10); set.add(25); set.add(40); set.add(55); set.add(70); set.add(85); set.add(100); System.out.println("Returned Value = " + set.higher(35)); } }OutputReturned Value = 40

Sort HashMap based on keys in Java

karthikeya Boyini
Updated on 30-Jul-2019 22:30:24
Firstly, create a HashMap −HashMap hm = new HashMap();Add some elements to the HashMap −hm.put("Shirts", new Integer(700)); hm.put("Trousers", new Integer(600)); hm.put("Jeans", new Integer(1200)); hm.put("Android TV", new Integer(450)); hm.put("Air Purifiers", new Integer(300)); hm.put("Food Processors", new Integer(950));Now, sort the HashMap based on keys using TreeMap −Map sort = new TreeMap(hm); System.out.println("Sorted Map based on key = "+sort);The following is an example to sort HasMap based on keys −Example Live Demoimport java.util.*; public class Demo { public static void main(String args[]) { HashMap hm = new HashMap(); hm.put("Shirts", new ... Read More

What is the difference between baking, roasting, shallow frying and deep frying?

Ridhi Arora
Updated on 30-Jul-2019 22:30:24
Nowadays everybody is health conscious and we do not want to eat fried food because of health issues and want to switch to oats, ragi etc. Others who do not eat healthier grains and cereals, switch to healthier cooking options like baking, roasting etc. Let us understand these cooking techniques one by one.BakingWhen one cooks in an oven such that soft mixture or batter mix, hardens upon cooking, it is called as baking. For example - baking a cake in an oven or making 'khaman dhokla' in an oven.RoastingPreparing garam masala at home involves collecting all the needed ingredients and ... Read More

What makes a mind creative?

Vihan Rodrigues
Updated on 30-Jul-2019 22:30:24
There are some characteristics that form a creative mind. Here they follow:An open and curious mind, which can mull over a certain thing from different angles.A creative mind tries to explore a systematic way to find a solution of a puzzle.A creative mind can present a probable solution through visual or verbal communication.A creative mind possesses positive thoughts that convert problems into solutions.

What is WAN accelerator?

Ankith Reddy
Updated on 30-Jul-2019 22:30:24
A wide area network accelerator (WAN accelerator) is a hardware component, a software, or an appliance executing in a virtualized environment that provides caching and optimization of WAN services. A WAN accelerator is also called a WAN optimizer or application accelerator.Working PrincipleA WAN accelerator provides services to speed up information flow between the end users for imparting better network experience. Its target is to reduce the data volume to be transmitted. So, it compresses data and uses data deduplication techniques. The accelerator caches duplicate data and sends references of them when they are needed multiple times instead of resending the ... Read More

What is an Inner class in Java?

Vikyath Ram
Updated on 30-Jul-2019 22:30:24
A nested class in Java is of two types i.e. Static nested class and Inner class. An inner class is a non-static nested class. Inner class is a security mechanism in Java as it can be private while normal classes cannot.A program that demonstrates an inner class is given as follows:Example Live Demopublic class Class1 {    private int a = 7;    class Class2 {       void func() {          System.out.println("This is an inner class");          System.out.println("a = " + a);       }    }    public static void main(String ... Read More

Is the life of human beings too boring?

Ridhi Arora
Updated on 30-Jul-2019 22:30:24
Boredom is a common state of mind we all at some point of time come across. There could be several reasons for the existence of this psychological phenomenon in your life or may not be necessarily a particular reason behind it. However, if this persists for a longer period then things may turn a terrible turn.What Can Be Done?First, try and continue your journey. You will find that elusive meaning. Never ever give Up. Cowards may give up; wise men do not! Make effort to think for yourself and for good. After all, it's not that we are going to carry ... Read More
Advertisements