Crowdly
Додати до Chrome
Questions Bank (1385643 total)
До країн Центральної Америка належить:
Коста-Ріка
✅
Канада
❌
Куба
❌
Переглянути це питання
Which method is used to check if a string contains a specific sequence of character?
Search()
0%
Find()
0%
Has()
0%
Contains()
0%
Переглянути це питання
Which statement is used to access a class from the same package without using the import statement?
import com.myPackage.*;
0%
ClassName obj = new ClassName();
0%
com.myPackage.ClassName obj = new com.myPackage.ClassName();
0%
package com.myPackage;
0%
Переглянути це питання
In Java, which of the following is not a valid package name?
my_package
0%
package_1
0%
myPackage1
0%
1package
0%
Переглянути це питання
In Java, what does the import statement help avoid?
Compilation errors
0%
Memory allocation issues
0%
Code reusability
0%
Naming conflicts between classes
0%
Переглянути це питання
In Java’s exception handling, which block is mandatory to use?
Throw block
0%
Catch block
0%
Try block
100%
Finally block
0%
Переглянути це питання
Which keyword is used for throwing custom exceptions in Java?
Catch
0%
Exception
0%
Throw
0%
Throws
0%
Переглянути це питання
How can you achieve multithreading in Java?
By using the multithread keyword.
0%
By extending the Multithread class.
0%
By defining multiple threads and running them concurrently.
0%
By defining multiple main() methods.
0%
Переглянути це питання
What does the * symbol in import com.myPackage.*; represent?
All classes from the current package
0%
All classes in the current program
0%
All classes from the java package
0%
All classes from the myPackage package
0%
Переглянути це питання
How can you prevent multiple threads from accessing the same resource simultaneously?
By using the yield() method.
0%
By using the sleep() method.
0%
By using synchronization.
100%
By adjusting thread priorities.
0%
Переглянути це питання
Попередня
1
Більше сторінок
112603
112604
112605
112606
112607
Більше сторінок
138565
Наступна
Telegram
Instagram
TikTok
Question Bank
Умови використання
Зв'яжіться з нами
Додати до Chrome