A Computer is used for performing many Repetitive types of tasks The Process of Repeatedly performing tasks is known as looping .The Statements in the block may be Executed any number of times from Zero to Up to the Condition is True. The Loop is that in which a task is repeated until the condition … Continue reading What is Loop?
Category: Java
What is Conditional Statements ?
Very often when you write code, you want to perform different actions for different decisions. You can use conditional statements in your code to do this. Type of conditional Statement if statement - use this statement if you want to execute a set of code when a condition is true. Syntax if (condition) { code … Continue reading What is Conditional Statements ?
Various type of Operators!
Arithmetic Operators : All the basic arithmetic operations can be carried out in C++. All the operators have almost the same meaning as in other languages. Both unary and binary operations are available in C++ language. Unary operations operate on a singe operand, therefore the number 5 when operated by unary – will have the … Continue reading Various type of Operators!
What is Operator ?
In mathematics and sometimes in computer programming, an operator is a character that represents an action, as for example x is an arithmetic operator that represents multiplication. Type of operators Arithmetic Operators Logical (or Relational) Operators Bitwise Operators Assignment Operators Increment,Decrement Operators
Various type of data types!
Datatype : a particular kind of data item, as defined by the values it can take, the programming language used, or the operations that can be performed on it. Basic Types They are arithmetic types and are further classified into: (a) integer types and (b) floating-point types. Enumerated types They are again arithmetic types … Continue reading Various type of data types!
What is java tokens ?
A java Program is made up of Classes and Methods and in the Methods are the Container of the various Statements And a Statement is made up of Variables, Constants, operators etc. Tokens are the various Java program elements which are identified by the compiler. A token is the smallest element of a program that … Continue reading What is java tokens ?
Various type of array
One Dimensional Array: This type of array represents and store data in linear form. It is also called single dimensional array. The general syntax to declare one dimensional array is [ Size ] ; In C/C++ language, array name is named constant which can not change during execution of a program. [ ] is subscript … Continue reading Various type of array
What is Array ?
An array is a container object that holds a fixed number of values of a single type. The length of an array is established when the array is created. After creation, its length is fixed. You have seen an example of arrays already, in the main method of the "Hello World!" application. This section … Continue reading What is Array ?
What is is object oriented programming?
Object Oriented Programming is a paradigm that provides many concepts such as inheritance, data binding, polymorphism etc. Simula is considered as the first object-oriented programming language. The programming paradigm where everything is represented as an object, is known as truly object-oriented programming language. Smalltalk is considered as the first truly object-oriented programming language. OOPs (Object … Continue reading What is is object oriented programming?
Simple program in java.
Write a program to print hello world. public class HelloWorldExample{ public static void main(String args[]){ System.out.println("Hello World !"); } } OUTPUT Hello World ! How to run java program Save your file same as class name.java Run command promt javac file name.java java file name