Java darslik

Java darslik

1. JDKni o’rnatish va birinchi dastur.

Java darslik

The Java Tutorials have been written for JDK 8. Examples and practices described in this page don’t take advantage of improvements introduced in later releases and might use technology no longer available.
See Java Language Changes for a summary of updated language features in Java SE 9 and subsequent releases.
See JDK Release Notes for information about new features, enhancements, and removed or deprecated options for all JDK releases.

The Java Tutorials are practical guides for programmers who want to use the Java programming language to create applications. They include hundreds of complete, working examples, and dozens of lessons. Groups of related lessons are organized into “trails”.

Trails Covering the Basics

  • Getting Started — An introduction to Java technology and lessons on installing Java development software and using it to create a simple program.
  • Learning the Java Language — Lessons describing the essential concepts and features of the Java Programming Language.
  • Essential Java Classes — Lessons on exceptions, basic input/output, concurrency, regular expressions, and the platform environment.
  • Collections — Lessons on using and extending the Java Collections Framework.
  • Date-Time APIs — How to use the java.time pages to write date and time code.
  • Deployment — How to package applications and applets using JAR files, and deploy them using Java Web Start and Java Plug-in.
  • Preparation for Java Programming Language Certification — List of available training and tutorial resources.

Creating Graphical User Interfaces

  • Creating a GUI with Swing — A comprehensive introduction to GUI creation on the Java platform.
  • Creating a JavaFX GUI — A collection of JavaFX tutorials.

Specialized Trails and Lessons

These trails and lessons are only available as web pages.

  • Custom Networking — An introduction to the Java platform’s powerful networking features.
  • The Extension Mechanism — How to make custom APIs available to all applications running on the Java platform.
  • Full-Screen Exclusive Mode API — How to write applications that more fully utilize the user’s graphics hardware.
  • Generics — An enhancement to the type system that supports operations on objects of various types while providing compile-time type safety. Note that this lesson is for advanced users. The Java Language trail contains a Generics lesson that is suitable for beginners.
  • Internationalization — An introduction to designing software so that it can be easily adapted (localized) to various languages and regions.
  • JavaBeans — The Java platform’s component technology.
  • JAXB — Introduces the Java architecture for XML Binding (JAXB) technology.
  • JAXP — Introduces the Java API for XML Processing (JAXP) technology.
  • JDBC Database Access — Introduces an API for connectivity between the Java applications and a wide range of databases and data sources.
  • JMX— Java Management Extensions provides a standard way of managing resources such as applications, devices, and services.
  • JNDI— Java Naming and Directory Interface enables accessing the Naming and Directory Service such as DNS and LDAP.
  • Reflection — An API that represents (“reflects”) the classes, interfaces, and objects in the current Java Virtual Machine.
  • RMI — The Remote Method Invocation API allows an object to invoke methods of an object running on another Java Virtual Machine.
  • Security — Java platform features that help protect applications from malicious software.
  • Sockets Direct Protocol — How to enable the Sockets Direct Protocol to take advantage of InfiniBand.
  • Sound — An API for playing sound data from applications.
  • 2D Graphics — How to display and print 2D graphics in applications.

Java darslik

Javani o’rganishni xohlovchilar uchun darslik – o’zbek tilida

Batafsil

1. Java JDK ni o’rnatish va cmd bilan bog’lash

2. Eclipse ni yuklab olish va o’rnatish

3. Java O’zgaruvchilari

4. Java da dasturga ma’lumot kiritish

5. Yig’indini hisoblash – kichik dastur.

6. Arifmetik amallar.

7. Inkrement va dekrement operatorlari

8. if else shart operatori

10. Shartli ifodalar

9. if shart operatori VA va YOKI logik operatori

11 Switch shart operatori

12. for sikl operatori

Java dasturlash tilida ro’yxatdan o’tib shaxsiy kabinet ochish dasturini tuzish!

Java dasturlash tilida tuzilgan dastur 1-qism

Java dasturlash tilida ro’yxatdan o’tish dasturi 4-qism

2. Eclipse IDE sini o’rnatish

4. Klaviatura orqali dasturga ma’lumot kiritish.

13. Dars While sikl operatori

13. Dars While sikl operatori

14. Dars do while sikl operatori

15. Dars break va continue operatorlari

16. Dars matodlar

6 – Dars. Arifmetik amallar.

7. Javada Inkrement va dekrement operatorlari

7. Java Amaliyot

8. Javada If shart operatori

9. Dars. Java if And va Or logik operatorlari

11 dars. Javada switch tanlash operatori

12 dars. Java dasturlash tilida for sikl operatori

Java dasturlash tili bilan tanishib olamiz!

1. JDKni o’rnatish va birinchi dastur.

10 dars. Javada shartli ifoda

17. Metodlar va ularning turlari

18. Metodlar bilan ishlash.

19. konstraktorlar nima?

20. this kalit so’zi

17. Random tasodifiy sonlar

18. printf metodi

21. ikki o’lchamli massivlar

22. Uch o’lchamli massivlar

28 static kalit so’zi

31 super kalit so’zi

32 access modifier

Java dars – Overriding

Java overriding – 2

Java dars. Overloading

Java final kalit so’zi

Java darslar – Stringlar haqida

Java darslar – String massivlar

Java darslar Char uchun metodlar

Java dasturlash tili bo’yicha string metodlari

36 Java dasturlash tilida Enumeration

48 Enumeration range metodi bilan

Java Kirish

Assalomu alaykum bugun siz bilan Java haqida uning mazmuni haqida gaplashib olamiz! Java bu dasturlash tili hisoblanib. Ko’p qo’llanilib kelinayotgan dasturlash tillaridan biri hisoblanadi. Java dasturlash tilida mobile, desktop, web, o’yinlar va ko’pgina imkoniyatlari mavjud.

Java va JavaScript boshqa boshqa dasturlash tili hisoblanadi!

Biz siz bilan hozir Java kodni ko’ramiz! Bu kodga keyinroq kengroq to’xtalib o’tamiz!

public class MyClass public static void main(String[] args) System.out.println("Hello World, MasterSherkulov"); > >

Java – 1995 yilda yaratilgan eng mashxur dasturlash tillaridan biri hisoblanadi. Java dasturlash tili Oracle ga tegishli hisoblanadi.

Java dasturlash tilida nima qila olishimiz mumkin!?

  • Mobile ilovalar. Android OT uchun ilovalar yaratish.
  • Desktop dasturlar yaratish imkoniyati
  • Web Saytlar
  • Web serverlar va Dastur Serverlari
  • O’yinlar
  • Ma’lumotlar bazasiga ulanish
  • Bundanda ko’proq imkoniyatlar . (etc)

Java dasturlash tilini nima uchun tanlashimiz kerak!?

  • Java turli xil platformalarda ishlaydi.
  • Java dasturlash tili dunyodagi eng mashxur dasturlash tillaridan biridir.
  • O’rganish va undan foydalanish. Sherigingiz yozgan kodga tushunib ketish juda oson.
  • Bu ochiq va bepul.
  • Java dasturlash tili xavfsiz kuchli va tezkor hisoblanadi.
  • Java dasturlash tili katta jamoatchilik tamonidan qo’llab quvvatlanmoqda!
  • Java bu obyektga yo’naltirilgan dasturlash tili bo’lib. GUI dasturlarni ishlash va taxrir qilish imkoniyatini beradi!
  • Java dasturlash tili C++ va C# dasturlash tillariga yaqin bo’lganligi sababli, dasturchilar Java yoki aksincha C++ va C# dasturlash tillariga o’tishda qiyinchilik to’gdirmaydi.

Keyin darsliklarimizda Biz siz bilan Java dasturlash tiliga ko’proq to’xtalib o’tamiz!

Java ishlari

Java talab juda yuqori veb va mobil ilovalarini ishlab chiqish uchun Java dasturchilarni yollashmoqda.Quyida Java-dan foydalanayotgan yirik kompaniyalar va ularga yaxshi Java dasturchilari kerak:

Java bir marta yoziladi, istalgan joyda ishga tushiriladi.

  • Ob’ektga yo’naltirilgan – Java-da hamma narsa ob’ektdir. Java osongina kengaytirilishi mumkin, chunki u Ob’ekt modeliga asoslangan.
  • Platformadan mustaqil – C va C++ kabi ko’plab boshqa dasturlash tillaridan farqli o’laroq, Java kompilyatsiya qilinganda, u platformaga xos mashinaga emas, balki platformadan mustaqil bayt kodiga kompilyatsiya qilinadi. Ushbu bayt kodi internet orqali tarqatiladi va qaysi platformada ishlayotgan bo’lishidan qat’i nazar Virtual Mashina (JVM) tomonidan talqin qilinadi.
  • Oddiy – Java o’rganish oson bo’lishi uchun yaratilgan. Agar siz Java OOP ning asosiy tushunchasini tushunsangiz, uni o’zlashtirish oson bo’ladi.
  • Xavfsiz – Java-ning xavfsiz xususiyati bilan u virussiz, buzg’unchiliksiz tizimlarni ishlab chiqish imkonini beradi. Autentifikatsiya usullari ochiq kalitlarni shifrlashga asoslangan.
  • Arxitektura-neytral – Java kompilyatori arxitektura-neytral ob’ekt fayl formatini yaratadi, bu esa kompilyatsiya qilingan kodni Java ish vaqti tizimining mavjudligi bilan ko’plab protsessorlarda bajariladigan qiladi.
  • Portativ – arxitektura-neytral bo’lish va spetsifikatsiyaning amalga oshirishga bog’liq jihatlari yo’qligi Java-ni portativ qiladi. Java-dagi kompilyator ANSI C-da POSIX kichik to’plami bo’lgan toza portativlik chegarasi bilan yozilgan.
  • Mustahkam − Java asosan kompilyatsiya vaqtidagi xatolarni tekshirish va ish vaqtini tekshirishga e’tibor qaratib, xatolarga moyil vaziyatlarni bartaraf etishga harakat qiladi.
  • Multithreaded – Java-ning ko’p tarmoqli xususiyati bilan bir vaqtning o’zida bir nechta vazifalarni bajara oladigan dasturlarni yozish mumkin. Ushbu dizayn xususiyati ishlab chiquvchilarga muammosiz ishlashi mumkin bo’lgan interaktiv ilovalarni yaratishga imkon beradi.
  • Interpreted – Java bayt kodi tezda mahalliy mashina ko’rsatmalariga tarjima qilinadi va hech qanday joyda saqlanmaydi. Rivojlanish jarayoni tezroq va analitikdir, chunki ulanish bosqichma-bosqich va engil jarayondir.
  • Yuqori unumdorlik – Just-In-Time kompilyatorlaridan foydalangan holda Java yuqori ishlash imkonini beradi.
  • Taqsimlangan – Java Internetning taqsimlangan muhiti uchun mo’ljallangan.
  • Dinamik – Java C yoki C++ ga qaraganda dinamikroq hisoblanadi, chunki u rivojlanayotgan muhitga moslashish uchun mo’ljallangan. Java dasturlari ish vaqtida ob’ektlarga kirishni tekshirish va hal qilish uchun ishlatilishi mumkin bo’lgan keng ko’lamli ish vaqti ma’lumotlarini olib yurishi mumkin.

Sizga kerak bo’ladigan qurilma

Ushbu qo’llanmada ko’rib chiqilgan misollarni bajarish uchun sizga kamida 128 MB operativ xotiraga ega 300 MGts chastotali Pentium kompyuter kerak bo’ladi (256 MB RAM tavsiya etiladi).

Shuningdek, sizga quyidagi dasturlar kerak bo’ladi –

  • Linux 7.1 yoki Windows xp/7/8 operatsion tizimi
  • Java JDK 8
  • Microsoft Notepad yoki boshqa matn muharriri

Ushbu qo’llanma Java-dan foydalangan holda GUI, tarmoq va veb-ilovalarni yaratish uchun kerakli ko’nikmalarni beradi.

Java

Java bo’yicha darsliklar va ko’nikmalar.

Qiziqarli malumotlar
Java darslik