-->

EveryBrickMatters

Print "Hello World " without semicolon

How will you print “Hello World” without semicolon? There can be many ways.  One of them is following. #include<stdio.h> int mai...


Trigger and Procedure in database

What is a Trigger? A Trigger is a stored procedure that is associated with insert, update or delete operations. The code is executed autom...


Difference between Primary key and Unique Constraints

What is the difference between primary key and unique constraints? Both primary key and unique key enforces uniqueness of the column on w...


Given a calculator that only has the + operator. How would you implement *,-,/.

Multiplication ( * ) operation We can add the first number, second number of times. Say i=4, j=5; //Run a for loop for 5 times(j), add...


Memory leak

What is memory leak ? In computer science, a memory leak occurs when a computer program incorrectly manages memory allocations. When Dy...


Widening(Up Casting) and Narrow(Down Casting) Conversion in Java

Q: - What are the two type of Conversion in Java and UP Casting , Down Casting? When the automatic conversion takes place then it is know...


Public static void main() based question in Java

Q. Why main function is defined as public and static? Ans:-  Public access specifier is specified so that the program wud be visible outsid...


Explain JVM , JRE , JIT , JDK in detail.

JDK (Java Development Kit) :- IT contains Java Compiler , Debugger , libraries , bundling and deployment tools. It contains all the tools ...


Why is Java so Secure and Platform independent language ?

Answer is byte code . Java is first compiled into byte code which is intermediate language between machine code and source code . This by...


Difference between Multiprogramming , Multitasking , Multiprocessing and Multithreading Operating System

Multiprogramming  In multiprogramming more than one program reside in the main memory. When one job is unable to execute because of I/O o...


Efficient Binomial Coefficient

Write a function that takes two parameters n and k and returns the value of Binomial Coefficient C(n, k). For example:- if k=8 , n= 2 resul...


Difference between String, StringBuilder and StringBuffer in Java

String     String Builder String Buffer Immutable         Mutable              Mutable Synchronised(thread saf...