Array is a collection of similar type of elements. However big an array, its element are always stored in contiguous memory location. This is very important point which we would discuss in more detail later on.
This java program we find that a number is even or odd. If the number is divisible by ‘2’ then it will be ‘Even’, otherwise it is ‘Odd’. Step 1: Lets open a notepad and write the following code. //Code… Continue Reading →
swap two number without using any third variable and arithmetic operator.
Inheritance represents the IS-A relationship, also known as parent-child relationship.
Exceptions are of two kinds, namely, synchronous exception and asynchronous exceptions. Errors such as “out of range index” and “over flow” belong to the synchronous type exceptions. The errors that are caused by events beyond the control of the program are called asynchronous exceptions.
how to add two numbers in java without using eclipse.