Featured post

-Write C program to find even and odd number using macro

-Write C program to find even and odd number using macro #include<stdio.h> #define number(n)((n%2==0)?1:0) int main() { int num; printf("enter any number"); scanf("%d",&num); if(number(num)) printf("number is even"); else printf("number is odd"); return 0; } ***************************Output*********************** amr@amrj-virtual-machine:~$ gccevenodd.c amr@samr-virtual-machine:~$ ./a.out enter any number 2 number is evensmj@amr-virtual-machine:~$

JAVA Tautorials

 1.Introduction To JAVA

- History and features of JAVA

- JDK,JRE,JIT and JVM

- Naming conventions

- Simple java program

- JAVA IDE

- Data Types

- Variable:final,static,abstract

- Types of comments

- Array: 1D,2D,Dynamic array using vector

- Accepting input using Command line argument

- Accepting input from console(Using BufferedReader and Scanner class)


History  and  features  of  JAVA:

-Java is an object oriented programming language like C++.
-Gives all the features of OOP
-Was developed by 5 inventors from Sun microsystem,USA in 1991

        (James Gosling,Chris Warth,Patrick Naughton,Ed Frank,Mike Sheridan)

-Initially known as “Oak”
-1995,Renamed  as “Java”

Advantages :

easy to learn-

       Java was designed to be easy to use and is therefore easy to write, compile, debug, and learn than other programming languages.

Java is object-oriented-

       this allows you to create modular programs and reusable code.

Java is platform-independent.

       ability to move easily from one computer system to another.

       The ability to run the same program on many different systems

Eliminates manual memory allocation and deallocation.(Garbage collection)
Eliminates Pointer
Eliminates Multiple Inheritance

https://amreshtechknowledge.blogspot.com/2020/08/java-tautorials.html

Disadvantages:

1.   Java language runs on a virtual machine, It runs somewhat slowly compared to other  programs.

2.Program do  not always work correctly  even if they are written correctly, because a Java Virtual Machine may be written incorrectly.

Comments

Popular posts from this blog

-Write C program to find even and odd number using macro

BCA (SCIENCE) JAVA PRACTICAL SLIPS PAGES.(JAVA) UNIVERSITY OF PUNE

How to OCR Text Extraction in Flutter Using Google ML Kit