Computer Science, asked by Anonymous, 4 months ago

Java programmer please help

• What is Java ?
• Describe about Java.
• Codings of Java.
• Principal concepts of Java.
• What is Recursive Algorithm ?
━━━━━━━━━━━━━━━━━━━
⚠️ Please don't spamm⚠️
– Non-Copied answer

Answers

Answered by Vyomsingh
19

What is Java? Description of Java too.

  • Java is a high level programming language which come into existence in 1994,when the name of oak language transformed to Java.
  • Java is class based, Objects oriented programming language which is used to create platform independent Programs.
  • It was originally designed for developing programs for set-top boxes and devices, but later became a popular choice for creating web applications.

_______________________________

Coding of Java:

The Basic/Simplest form of Java Coding be like this

class classname

{

void main()

{

System.out.println("Welcome to the World of Java");

}

}

Hence,

Different Data types, Function, keywords,classes , Operators etc are used to create a desired Program code.

_______________________________

Principal concepts Of Java:

There are Four main Concept of OOP'S which proceed same as in Java:-

(1) Data Abstraction-

In java, Abstraction is the concept of simplifying a real world concept into its essential elements .

Means showing only essential features to users and hide others.(like it procces)

(2) Encapsulation-

The wrapping up of data and operations/functions(that operate on the data) into a single unit (called class) is known as encapsulation.

(3) Inheritance-

In java Inheritance is the capability of one class of things to inherit capabilities or properties from another class.Class which inherit properties is called base class and the class from which the properties inherited is called Superclass.

As in real life Children inherit some properties of their parents but they are not same.

(4) Polymorphism-

In java Polymorphism is the ability for a message or data to be processed in more than one form.

In other ways, Polymorphism is the concept of OOP's through which same function can work differently for different purposes.

i.e.

Let take the Function area() which may work for Triangle as 1/2*base*height but same function works differently for area of Rectangle which is length*width.

________________________________

What is Recursive Algorithm ?

  • The process in which a function calls itself directly or indirectly is called recursion(recursive)
  • The corresponding function is called as recursive function.
  • Using recursive algorithm, certain problems can be solved quite easily.
Similar questions