Thursday , January 21 2021

What is a constructor? How It is different from other methods?

What is a constructor? How It is different from other methods? What is a constructor: A constructor is a special method defined in a class implicitly or explicitly.  Its purpose is to initialize the instance variables of a class. How It is different from other methods? Differences between Constructor and …

Read More »

Static and Dynamic Arrays

What is difference between Static and Dynamic Arrays: Static simply means fixed and dynamic simply means having changing behavior. So in case of Static Arrays the maximum size of the arrays should be declared at the time of array creation. While the dynamic arrays can adapt the size on the …

Read More »

Enhanced for Statement

Enhanced for statement: Enhanced for statement or enhanced for loop is a short form of a simple for loop (Counter Controlled Loop) used in Java Language. We know that the simple for loop’s syntax is for (var_initialization ; continuation_condition ; increment/decrement) It has three parts initialization, condition and inc/dec operator. …

Read More »

Quiz Java Arrays

Quiz Java Arrays You must know what are Arrays? How to Declare and Create Arrays? You must have enough practice program examples Using Arrays. You must know the mechanism of Passing Arrays to Methods. Create a Class ResultBook Using an Array to Store the Students Grades. What are Multidimensional Arrays? …

Read More »