Featured Article

How Google Search Works!

The Google Search: It happens billions of times a day in the blink of an eye and we can have anything before us our minds can think of! Let’s explore the art and science that makes it possible. Crawling & Indexing: The journey of a query starts before we ever type a search, with crawling… Read More »

Featured Article

K-Nearest Neighbours

K-Nearest Neighbours is one of the most basic yet essential classification algorithms in Machine Learning. It belongs to the supervised learning domain and finds intense application in pattern recognition, data mining and intrusion detection. It is widely disposable in real-life scenarios since it is non-parametric, meaning, it does not make any underlying assumptions about the… Read More »

typedef versus #define in C

typedef : typedef is used to give data type a new name, for example Output : c #define : is a C directive which is used to #define alias. Output : Hyderabad typedef is different from #define among the following aspects typedef is limited to giving symbolic names to types only, where as #define can… Read More »

Output of Java Program | Set 10

Predict the output of following Java programs: Question 1 : a) 6 b) 5 c) Compile time error d) Run time error Answer (c) Explanation: When overriding a method of superclass, the method declaration in subclass cannot be more restrictive than that declared in the superclass. Question 2 : a) Either Compile time or Runtime… Read More »

Enum with Customized Value in Java

Prerequisite : enum in Java By default enums have their own string values, we can also assign some custom values to enums. Consider below example for that. Examples: enum Fruits { APPLE(“RED”), BANANA(“YELLOW”), GRAPES(“GREEN”); } In above example we can see that the Fruits enum have three members i.e APPLE, BANANA and ORANGE with have… Read More »

Temple Offerings

Consider a devotee wishing to give offerings to temples along a mountain range. The temples are located in a row at different heights. Each temple should receive at least one offering. If two adjacent temples are at different altitudes, then the temple that is higher up should receive more offerings than the one that is… Read More »

SQL | EXISTS

The EXISTS condition in SQL is used to check whether the result of a correlated nested query is empty (contains no tuples) or not. The result of EXISTS is a boolean value True or False. It can be used in a SELECT, UPDATE, INSERT or DELETE statement. Syntax: SELECT column_name(s) FROM table_name WHERE EXISTS (SELECT… Read More »

Java.lang.Compiler Class in Java

Compiler Class provides support and related services to Java code to Native Code. Native code is a form of code that can be said to run in a virtual machine (for example, [JVM]Java Virtual Machine). Declaration : public final class Compiler extends Object Methods : command() : java.lang.Compiler.command() tests the argument type and performs some… Read More »

Java.lang.Void Class in Java

Java.lang.Void class is a placeholder which holds a reference to a class object if it represents void keyword. It is a uninstantiable placeholder. Well, uninstantiable means that this class have a private constructor and no other constructor that we can access from outside. Methods of lang.void class are all inherited from Object class in Java:… Read More »