Ads block

Banner 728x90px

Explain different types of constructors.


Constructors are special member functions whose task is to initialize the objects of its class. It is treated as a special member function because its name i…
Read more »

Explain Method overloading.


Method Overloading With  method overloading , multiple methods can have the same name with different parameters: Example int myMethod ( int x ) float myM…
Read more »

Define array. And explain about single dimensional array with an example.


Define array. And explain about single dimensional array with an example.
Java Arrays Normally, an array is a collection of similar type of elements which has contiguous memory location. Java array  is an object which contains elem…
Read more »

Explain about switch statement with an example.


Explain about switch statement with an example.
Java Switch Statement The Java  switch statement  executes one statement from multiple conditions. It is like  if-else-if  ladder statement. The switch state…
Read more »