Create a Java program to count the occurrences of a specific word in a text file.
أنشئ برنامجاً في جافا لعد مرات ظهور كلمة معينة في ملف نصي.
#FileProcessing
أنشئ برنامجاً في جافا لعد مرات ظهور كلمة معينة في ملف نصي.
#FileProcessing
Java Programming Exercises and Solutions.pdf
5.7 MB
اسئله مع الحلول جافا 1 و جافا 2
مجمعه من اختبارات سابقة من جامعات مختلفه
♡ ㅤ ❍ㅤ ⎙ ⌲
ˡᶦᵏᵉ ᶜᵒᵐᵐᵉⁿᵗ ˢᵃᵛᵉ ˢʰᵃʳᵉ
مجمعه من اختبارات سابقة من جامعات مختلفه
♡ ㅤ ❍ㅤ ⎙ ⌲
ˡᶦᵏᵉ ᶜᵒᵐᵐᵉⁿᵗ ˢᵃᵛᵉ ˢʰᵃʳᵉ
3❤8
What is the difference between `&&` and `&` operators in Java?
ما هو الفرق بين العاملين `&&` و `&` في جافا؟
#JavaOperators #LogicalOperators
ما هو الفرق بين العاملين `&&` و `&` في جافا؟
#JavaOperators #LogicalOperators
❤1
جافا Java
What is the difference between `&&` and `&` operators in Java? ما هو الفرق بين العاملين `&&` و `&` في جافا؟ #JavaOperators #LogicalOperators
اختر الإجابة الصحيحة
Anonymous Quiz
9%
There is no difference, they can be used interchangeably
60%
`&&` is logical AND, `&` is bitwise AND
16%
`&&` is short-circuit AND, `&` always evaluates both operands
15%
`&` is used for objects, `&&` is used for primitives
1👍5
What is the difference between `equals()` and `hashCode()` methods in Java?
ما هو الفرق بين دالتي `equals()` و `hashCode()` في جافا؟
#JavaObjectMethods #ObjectComparison
ما هو الفرق بين دالتي `equals()` و `hashCode()` في جافا؟
#JavaObjectMethods #ObjectComparison
جافا Java
What is the difference between `equals()` and `hashCode()` methods in Java? ما هو الفرق بين دالتي `equals()` و `hashCode()` في جافا؟ #JavaObjectMethods #ObjectComparison
اختر الإجابة الصحيحة
Anonymous Quiz
11%
They are the same and can be used interchangeably
64%
`equals()` compares object content, `hashCode()` generates a numeric value for the object
12%
`hashCode()` compares objects, `equals()` generates a unique ID
13%
They are unrelated methods
1
Write a Java code to implement a simple tic-tac-toe game.
اكتب كود جافا لتنفيذ لعبة إكس-أو البسيطة.
#SimpleGames
اكتب كود جافا لتنفيذ لعبة إكس-أو البسيطة.
#SimpleGames
1👍1
What is the purpose of the `instanceof` operator in Java?
ما هو الغرض من العامل `instanceof` في جافا؟
#JavaOperators #TypeChecking
ما هو الغرض من العامل `instanceof` في جافا؟
#JavaOperators #TypeChecking
جافا Java
What is the purpose of the `instanceof` operator in Java? ما هو الغرض من العامل `instanceof` في جافا؟ #JavaOperators #TypeChecking
اختر الإجابة الصحيحة
Anonymous Quiz
13%
To create a new instance of a class
9%
To compare two objects
65%
To check if an object is an instance of a specific class or interface
13%
To call a method of a class
1👍1🤩1
Which of the following is true about Java's garbage collection?
أي مما يلي صحيح بخصوص جمع القمامة (garbage collection) في جافا؟
#JavaMemoryManagement #GarbageCollection
أي مما يلي صحيح بخصوص جمع القمامة (garbage collection) في جافا؟
#JavaMemoryManagement #GarbageCollection
جافا Java
Which of the following is true about Java's garbage collection? أي مما يلي صحيح بخصوص جمع القمامة (garbage collection) في جافا؟ #JavaMemoryManagement #GarbageCollection
اختر الإجابة الصحيحة
Anonymous Quiz
25%
Garbage collection has to be handled manually by the programmer
18%
Garbage collection only works for certain types of objects
29%
Garbage collection can be explicitly called using System.gc()
29%
Garbage collection guarantees that a program will never run out of memory
👍2🙏1
Create a Java method to calculate the nth Catalan number.
أنشئ دالة في جافا لحساب عدد كاتالان رقم n.
#MathematicalSequences
أنشئ دالة في جافا لحساب عدد كاتالان رقم n.
#MathematicalSequences
1
What is the purpose of the `instanceof` operator in Java?
ما هو الغرض من العامل `instanceof` في جافا؟
#JavaOperators #TypeChecking
ما هو الغرض من العامل `instanceof` في جافا؟
#JavaOperators #TypeChecking
جافا Java
What is the purpose of the `instanceof` operator in Java? ما هو الغرض من العامل `instanceof` في جافا؟ #JavaOperators #TypeChecking
اختر الإجابة الصحيحة
Anonymous Quiz
11%
To create a new instance of a class
3%
To compare two objects
82%
To check if an object is an instance of a specific class or interface
3%
To call a method of a class
1
Which of the following is true about Java interfaces?
أي مما يلي صحيح بخصوص الواجهات (interfaces) في جافا؟
#JavaInterfaces #OOP
أي مما يلي صحيح بخصوص الواجهات (interfaces) في جافا؟
#JavaInterfaces #OOP
👍1
جافا Java
Which of the following is true about Java interfaces? أي مما يلي صحيح بخصوص الواجهات (interfaces) في جافا؟ #JavaInterfaces #OOP
اختر الإجابة الصحيحة
Anonymous Quiz
16%
An interface can contain method bodies
11%
An interface can be instantiated
49%
A class can implement multiple interfaces
24%
An interface can extend multiple interfaces
1
Write a Java code to implement a simple text-based RPG character creator.
اكتب كود جافا لتنفيذ منشئ شخصيات RPG نصي بسيط.
#GameDevelopment
اكتب كود جافا لتنفيذ منشئ شخصيات RPG نصي بسيط.
#GameDevelopment
1
What is the purpose of the `volatile` keyword in Java?
ما هو الغرض من الكلمة المفتاحية `volatile` في جافا؟
#JavaConcurrency #VolatileKeyword
ما هو الغرض من الكلمة المفتاحية `volatile` في جافا؟
#JavaConcurrency #VolatileKeyword
❤1
جافا Java
What is the purpose of the `volatile` keyword in Java? ما هو الغرض من الكلمة المفتاحية `volatile` في جافا؟ #JavaConcurrency #VolatileKeyword
اختر الإجابة الصحيحة
Anonymous Quiz
10%
To make a variable constant
28%
To make a variable thread-safe
45%
To prevent a variable from being modified
17%
To optimize variable access