MAXIMUM INDEX: Arrays [L - 1.10] | Java Programming | Programming Questions | Placements |Utkarshini

preview_player
Показать описание
An array is a container object that holds a fixed number of values of a single type. The length of an array is established when the array is created. After creation, its length is fixed. You have seen an example of arrays already, in the main method of the "Hello World!" application. This section discusses arrays in greater detail. Each item in an array is called an element, and each element is accessed by its numerical index.

Java is a high-level, class-based, object-oriented programming language that is designed to have as few implementation dependencies as possible.

Geeks For Geeks Link:

Links:

[GET FREE CERTIFICATION]

[Get Free Notifications on Placements and Jobs]

Java is one of the most popular and widely used programming language.

1. Java has been one of the most popular programming language for many years.
2. Java is Object Oriented. However, it is not considered as pure object oriented as it provides support for primitive data types (like int, char, etc)
3. The Java codes are first compiled into byte code (machine independent code). Then the byte code runs on Java Virtual Machine (JVM) regardless of the underlying architecture.
4. Java syntax is similar to C/C++. But Java does not provide low level programming functionalities like pointers. Also, Java codes are always written in the form of classes and objects.
5. Java is used in all kind of applications like Mobile Applications (Android is Java-based), desktop applications, web applications, client-server applications, enterprise applications and many more.
6. When compared with C++, Java codes are generally more maintainable because Java does not allow many things which may lead to bad/inefficient programming if used incorrectly. For example, non-primitives are always references in Java. So we cannot pass large objects (like we can do in C++) to functions, we always pass references in Java. One more example, since there are no pointers, bad memory access is also not possible.
7. When compared with Python, Java kind of fits in between C++ and Python. The programs are written in Java typically run faster than corresponding Python programs and slower than C++. Like C++, Java does static type checking, but Python does not.

Thanks For Watching!
: )
Рекомендации по теме
Комментарии
Автор

if i just wanted the code i could have copied it from any website...wheres the approach and thought process before coding ?

darkseid
Автор

Thank you. Your way of explaining the problem and its solution really helpful for me.

codesmasher
Автор

Can you the question first what to do ?

sumanbaral
Автор

You did a mistake while computing LMin in above example instead of 30 30, it should be 2 2 :)

anubhavmahajan
Автор

explanation is nice but efforts r low to show approach ..basically how the indices r matches and & why use this approach,

Priyew
Автор

Very nice explanation with excellent code. You do good work keep it up.

babulohar
Автор

didi wo sb to think h pr solution dimag me aya kaise koi intuition h ya nhi.

RohitSingh-pzzb
Автор

Explanation kidhar hai , bus code repeat kar diya

Man_of_Culture.