Skip to main content

Posts

Best Programming Language to learn in 2021

The main aptitude to learn in this day and age is to realize how to compose a PC program. Today, PCs have entered in pretty much every industry. Be it the autopilot in an airplane or advanced speedometer in your bicycle, PCs in different structures encompass us. PCs are incredibly valuable for an association to scale up well. Gone are the times of pen and paper. Today, to store and access your data, you totally need PCs. The programming and engineer networks are arising at a rate quicker than at any other time. Different new programming dialects are coming up that are appropriate for various classifications of designers (tenderfoots, middle, and specialists) just as for various use cases (web application, versatile applications, game turn of events, disseminated framework, and so forth) Each amateur is astounded with the inquiry, "What programming language would it be advisable for me to learn?" Types of Programming  1. Procedural Programming Languages This programming worldv

Java Constructors

Constructor A constructor is a special type of method of a class which is automatically called when the object of the class is been created. There are two types of constructor in Java programming language.. 1) Default Constructor. 2) Parameterized Constructor. Default Constructor default constructor also known as No argument constructor is a constructor in which no arguments are been passed, it is used to provide values to the object like 0,null, etc. depending upon the data type. Lets take an example of default constructor class defaultconstructor {        defaultconstructor()   // default constructor      {          System.out.println("Default Constructor is Invoked");      }      public static void main(String[] args)   // main method      {     defaultconstructor d1=new defaultconstructor(); // object is been created      } } Output Default Constructor is Invoked Explanation :- In the above example we have taken a class with name defaultconstructor in which we have taken

Looping Statement in Java.

  Firstly what is looping statement? So, looping statement are those statement which are executed more than one time repeatedly until the user want. There are Three looping Statement in Java. 1) for loop. 2) while loop. 3) do while loop. Lets understand them by their syntax. 1) for loop for loop is a control flow statement for specifying iteration, which allows code to be executed repeatedly until the user wants. Lets understand by one example:-   Here in the example we have initiated a class with name for_loop then we have main method in the main method we have for loop in that for loop we have statement in which i is initialize to 0 and i is less than 5 and i++ for incrementing the value of i. And in that for loop we have given a statement to print the value of i. Then we have completed the blocks and generated the output. 2) while loop while loop is also a control flow statement that allows code to be executed repeatedly based on the given Boolean condition. Lets understand by one e

Decision Making Statements in Java Programming Language.

 Their are 3 decision making statement in Java. Here where ever you find the if underlined like this( if ) then it is related to statement. 1) if statement. 2) if else statement. 3) if-else-if statement. So lets discuss one by one about each statement. 1) if statement:- if statement is used in programming for checking the given condition is true or not. If the condition in the if block is true then the block executes otherwise the programme terminates. Lets understand it by its syntax.   Here in the syntax we have condition in the if block, if the the condition which we have putted is true then the code which is written in the block will executes otherwise the programme ends their.  2) if else statement:- if else statement is used in programming for checking the given condition is true or false. If the condition is true then the if block is executed otherwise the else block is executed. Lets understand it by its syntax. Here in the syntax a condition is given in the if statement, i

History of Java Programming Language.

 *- History of Java-* Java is a general purpose and  true object oriented programming language. Java was originally designed for interactive televisions, but is was to advance technology for the digital cable televisions industry at that time. The history of Java starts with Green-Team. Java team members initiated this project to develop a language for digital devices such as set-top boxes, televisions,  etc. The founder James Gosling,  Mike Sheridan and Patrick Naughton initiated the java language project in June 1991. The language was initially called OAK  . Later the project went by the name Green and was finally renamed Java, from Java coffee, the coffee from Indonesia. Gosling designed Java with C/C++ style that system and application programmers would find familiar. Why it was firstly named as OAK? Oak is symbol of Strength and chosen as a national tree of many countries like U.S.A, France, Romania, etc. In 1995 the Oak was renamed as Java because it was already a trademark by Oa