DEV Community

Ajay Raja
Ajay Raja

Posted on

Class_Till_Now(P-1)

TopicsCoverd

According to me What I studied or know
1)What is JAVA and History?

  • High level programming Language developed by Sun Microsystems.
  • Designed with the philosophy of "WRITE ONCE RUN ANYWHERE"
  • Program can run on any device or any operating systems.

History:
1.Java Developed By James Gosling in *1990s *
2.Java is Developed by using C++.
3.Name 'OAK' was used by Gosling by seeing OAK tree that will remain outside his office.It Transferred to JAVA(Coffe tree near his office)
4.Java was created on Robust,Portable,Platform independent,High performance and Multithread...etc
5.Currently used in Internet programming,Mobile Devices,games,e-business..etc.

2)What is Compiler and Interpreter?

Compiler:

1.Converting the code written in a high-level language into machine-level language
2.Compiled code runs faster in comparison to Interpreted code.
3.Compilers give Debugging tools, which help in fixing errors easily.
4.The compiler can catch only syntax errors
5.Compilation can take more time in the case of bulky code.

Interpreter:

1.converts the Java bytecode (.class file) into the code understand by the operating system.
2.It is responsible for reading and executing the program.
3.It converts the high-level program into assembly language (machine language).
4.Each error of every line is displayed one by one
5.Less amount of time is spent on analyzing and processing the program

3)What is Translator?

1.Programming language processor that converts a computer program from one language to another.
2.It takes a program written in source code and converts it into machine code
3.It discovers and identifies the error during translation.

4)What is programming language and Types?
1.Programming languages are tools used to communicate instructions to computers.
2.They are categorized based on their functionality, structure, and purpose.
Types:
1.Procedural Programming Languages:

  • These languages follow a sequence of instructions to perform tasks.
  • They are widely used for system programming and applications requiring step-by-step execution.

2.Object-Oriented Programming Language:

  • OOP languages organize code into objects containing data and methods.
  • They are commonly used in software development, game design, and mobile applications.

3.Scripting Languages:

  • Scripting languages automate tasks, manage dynamic content, or integrate with other applications.
  • They are widely used in web development

4.Markup Languages:

  • Markup languages like HTML and XML are used to structure and present content on the web.
  • They are essential for front-end web development.

5.High-Level vs. Low-Level Languages:

  • High-level languages like Python and Java are user-friendly, making them easier to learn and use
  • Low-level languages like Assembly and C are closer to machine code

5)Features of Java?

1)Simple:
-Java is easy to learn and use.
-Its syntax is similar to C/C++ but with fewer complexities

2)Object-Oriented:
-Everything in Java is treated as an object
-It supports concepts like encapsulation, inheritance, and polymorphism, making programs modular and reusable.

3)Portable:
-Java programs can run on any platform without modification.
-The compiled bytecode can be executed on any system with a Java Virtual Machine (JVM).

4)Platform Independent:
-“Write Once, Run Anywhere” (WORA).
-Allows code to be excecuted on different operating systems like(Windows,MAXos,Linux.)etc....

6)What is High level&Low level?difference

7)What is compile Time and Run time error?
compile time:

Top comments (0)