Elements of C

Identifiers: All the words that we will use in c are keywords or identifiers. keywords are predefined and can’t be changed by the users, While identifiers are used to give names to entities likes variables, arrays, functions and etc. There are some rules naming identifiers as: The name should consist […]


Why constructor is needed? It can be a slow process to initialize all variables of a class, each time when an object is created.  Because the requirement of initialization is very common, JAVA allows objects to initialize themselves when they are created. This automatic initialization is performed through the use […]

Control Statements in Java and their Examples

There are mainly three categories of control statement in Java as: Selection Statement Iteration Statement Jump statement   Selection Statement : There are two selection statements that Java supports: if statement: It is conditional branch statement. It can be used to route program execution through two different paths. Syntax:  if(condition) […]