Friday, April 19, 2019

C Programming Basics Make a simple C program

C Programming Basics Make a simple C program

C Programming Basics |  Make a simple C program

A Simple C Program


Below C Program is a very simple and basic program in C programming language. 

This C program displays “Hello World” in the output window. 

And, all syntax and commands in C programming are case sensitive. Also, each statement should be ended with semicolon (;) which is a statement terminator.


#include<studio.h>
int main()
{
/*Our first simple C basic program*/
printf(“Hello World”);
getch();
return0;
}


OUTPUT:


Hello World!
C basic commands with explanation table are as given below:

C Basic Commands
Explanation
#include <stdio.h>
This is a This is a preprocessor command that includes standard input output header file(stdio.h) from the C library before compiling a C program
int main()
This is the main function from where execution of any C program begins.
{
This indicates the beginning of the main function.
/*some comments*/
whatever is given inside the command “/*   */” in any C program, won’t be considered for compilation and execution.
printf(“Hello World”);
printf command prints the output onto the screen.
getch();
This command waits for any character input from keyboard.
return0;
This command terminates C program (main function) and returns 0.
}
This indicates the end of the main function.


Labels:

History, Uses and Basics of C Language |Computer Programming Tutorials

History, Uses and Basics of  C Language Computer Programming 


The C programming language is a structure oriented programming language, developed at Bell Laboratories in 1972 by Dennis Ritchie.

C Programming  language features were derived from an earlier language  called “B” (Basic Combined Programming Language –BCPL)

the founder of c programming language
Dennis Ritchie


C Languagewas invented for implementing UNIX operating system.

 In 1978, Dennis Ritchie and Brian Kernighan published the first edition “The C Programming Language” and commonly known as K&R C.
In 1983, theAmerican National Standards Institute (ANSI) established a committee to provide a modern, comprehensive difinition of C. The resulting definition, the ANSI standard, or “ANSI C”, was completed late 1988.

Features of C:


C Language is one of the powerful language . Below are some of the features of C language.
  • Reliability
  • Portability
  • Flexibility
  • Interactivity
  • Modularity
  • Efficiency and Effectiveness

Uses of C:

The C programming language is used for developing system applications that forms a major portion of operating systems as Windows, UNIX and Linux.

Below are some examples of C being used.
  • Database systems
  • Graphics packages
  • Word processors
  • Spreadsheets
  • Operating system Development
  • Compilers and Assemblers
  • Network Drivers


Labels:

The History of Java | Computer Programming Basics


The History of Java |  Computer Programming Basics James gosling the founder of java programming language
James Gosling the Founder of Java


The History of Java | 

Computer Programming Basics


The History of Java is very interesting. Java was originally designed for interactive television, but it was to advanced technology for the digital cable television industry at the time. 

The history of java starts with Green Team. Java team members (also known as Green Team), initiated this project to develop  a language for digital devices such as set-top boxes, televisions, etc. However, it was suited for internet programming . Later, Java technology was incorporated by Netscape.

The principle for creating Java programming were “Simple, robust, Portable, Platform-independent, secured, high performance, Multithreaded, Architecture neutral, Object-Oriented, Interpreted and Dynamic.”

Currently Java is used in Internet programming, mobile devices, games, e-business solutions, etc. There are given the significant points that describe the history of Java.

1.James Gosling, Mike Sheridan and Patrick Naughton initiated the Java language project in June 1991. The small team of sun engineers  called Green Team.

2.Originally designed for small, embedded systems in electronic appliances like set-top boxes.

3.Firstly, it was called “Greentalk” by James Gosling, and file extension was .gt.

4.After that, it was called oak  and was developed as a part of the Green project.

Why Java named “oak”?

The History of Java |  Computer Programming Basics
Oak tree


5.Oak is a symbol of strength and chosen as a national tree of many countries like U.S.A. , France, Germany, Romania,etc.
6. In 1995, Oak was renamed as “Java” because it was already a trademark by Oak Technologies.

 Why Java Programming named “Java”?


       The Team gathered to choose a new name. The suggested words were “dynamic”, “revolutionary”, “silk”, “jolt”, “DNA” ,etc. They wanted something that reflected the essence of the technology revolutionary, dynamic,lively, cool, unique and easy to spell .

According to James Gosling, “Java was one of the top choices along with Silk”. Since Java was so unique, most of the team members preferred Java than other names.

8. Java is an island of Indonesia where first coffee was produced (called java coffee).

9.Notice that Java is just a name, not an acronym.

10.Initially developed by James gosling at Sun Microsystems (which is now a subsidiary of Oracle Corporation) and released in 1995.

11.In 1995, Time magazine called Java one of the Ten Best Products of 1995.

12.JDK 1.0 released in (January 23, 1996).

Labels: ,

Thursday, April 18, 2019

Introduction of JAVA | Editions | Appliction of Java Programming Language


Introduction of JAVA | Edtions |  Appliction of Java Programming  Language   Our core Java programming is designed for students and working professionals . Java is an object oriented language, class-based, concurrent, secured and general-purpose computer-programming language. It is a widely used robust technology.


Introduction of JAVA | Editions | 

Appliction of Java Programming 

Language


Our core Java programmingis designed for students and working professionals . Java is an object oriented language, class-based, concurrent, secured and general-purpose computer-programming language. It is a widely used robust technology.

 What is Java?


Java is a programming language and a platform
Java is a high level, robust, object-oriented and secure programming language.

 Platform:

Any hardware or software environment in which a program runs, is known as a platform. Since Java has a runtime environment (JRE) and API, it is called a platform.

Java Example


Let’s have a quick look at Java programming example . A detailed description of Hello Java example is available next article.

class simple{
public static void main(string args[]){
system.out.printIn(“Hello Java”);
}
}

Application

According to Sun, 3 billion devices run Java. there are many devices where java is currently used. some of them are as follows:

1.Desktop applications such as acrobat reader, media player, antivirus etc.2.Web applications such as irctc.co.in, javatpoint.com etc.3.Enterprise applications such as banking applications.4.Mobile5.Embedded System6.Smart Card7.Robotics8.Games, etc.

Types of Java Applications

There are mainly 4 types of applications that can be created using Java programming

1.Standalone application

Standalone applications are also known as desktop applications or windwo-based applications. These are traditional software that we need to install on every machine. Example of standalone applications are Media player, antivirus,etc. AWT and Swing are used in Java for creating standalone applications.


2.Web application


An application that runs on the server side and creates a dynamic page is called a web application currently, Servlet, JSP, Spring, Hibernate, JSF, etc. technologies are used for creating web applications in Java.

3. Enterprise application


An application that is distributed in nature, such as banking applications etc. is called enterprise application. It has advantages of the high-level  security, load balancing, and clustering. In Java, EJB is used for creating enterprise applications.


4.Mobile Application


An application which is created for mobile devices is called a mobile application . Currently, Android and Java ME are used for creating mobile applications.

Java Platforms/Editions


There are four platforms or editions of Java:

1.Java SE (Java Standard Edition)


It is a Java programming platform. It includes Java Programming APIs such as java.lang, java.io,java.net, java.util, java.sql,java.math etc. It includes core topics like OOPs, String, Regex, Exception, Inner classes, Multithreading, I/O stream, Networking, AWT, Swing, Reflection, Collection etc.

2.Java EE (Java Enterprise Edition)


It is an enterprise platform which is mainly used to develop web and enterprise applications. It is built on the top of the Java SE platform. It includes topics like Servlet, JSP, Web services, EJB,JPA etc.

3. Java ME (Java Micro Edition)


It is a micro platform which is mainly used to develop mobile applications

4. JavaFX


It is used to develop rich internet applications. It uses a light-weight user interface API.

Labels: ,