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...
Posted by Admin on
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...
Posted by Admin on
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...
Posted by Admin on
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...
Posted by Admin on
Memory leak
What is memory leak ? In computer science, a memory leak occurs when a computer program incorrectly manages memory allocations. When Dy...
Posted by Admin on
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...
Posted by Admin on
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...
Posted by Admin on
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 ...
Posted by Admin on
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...
Posted by Admin on
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...
Posted by Admin on
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...
Posted by Admin on
Difference between String, StringBuilder and StringBuffer in Java
String String Builder String Buffer Immutable Mutable Mutable Synchronised(thread saf...
Posted by Admin on
Subscribe to:
Posts (Atom)