Minter Coder's Blog

Ders Notlarım

image

Chapter 2 - Soru 5

2021-03-17
5. Which of these class names best follows standard Java naming conventions? A. fooBar B. FooBar C. FOO_BAR D. F_o_o_B_a_r Java naming conventions (java isimlendirme kuralında) class isimleri Büyük harfle başlar ve camel caseyi kullanır. ...
Read more →
image

Chapter 2 - Soru 4

2021-03-17
4. Which of the following is not a valid variable name? A. _blue B. 2blue C. blue$ D. Blue javada değişken isimleri _ veya $ özel karakterlerini içerebilir veya içerisinde bir sayı içerebilir fakat bu sayı değişkenin başında başlamaması şar...
Read more →
image

Chapter 2 - Soru 3

2021-03-17
3. Which is correct about an instance variable of type String ? A. It defaults to an empty string. B. It defaults to null . C. It does not have a default value. D. It will not compile without initializing on the declaration line. Bir String...
Read more →
image

Chapter 2 - Soru 2

2021-03-17
2. What is the output of the following? public static void main(String... args) { String chair, table = "metal"; chair = chair + table; System.out.println(chair); } A. metal B. metalmetal C. nullmetal D. The code does not compile. Arka...
Read more →
image

Chapter 2 - Soru 1

2021-03-17
1. Which of the following declarations does not compile? A. double num1, int num2 = 0; B. int num1, num2; C. int num1, num2 = 0; D. int num1 = 0, num2 = 0; Hangi bildirimler derlenmez diyo.A şıkkı derlenmez çünkü num1 den sonra ; (semicolon...
Read more →
image

Chapter 1 - Soru 19/20

2021-03-17
19. Which of the following is true of a Java bytecode file? A. It can be run on any computer with a compatible JVM. B. It can only be executed on the same type of computer that it was created on. C. It can be easily read and modified in a stand...
Read more →
image

Chapter 1 - Soru 18

2021-03-17
18. What is the output of the following code snippet? String tree = "pine"; int count = 0; if (tree.equals("pine")) { int height = 55; count = count + 1; } System.out.print(height + count); A. 1 B. 55 C. 56 D. It does not compile. tr...
Read more →
image

Chapter 1 - Soru 17

2021-03-17
17. Structuring a Java class such that only methods within the class can access its instance variables is referred to as _______. A. platform independence B. object orientation C. inheritance D. encapsulation Bir java classının methodunun ...
Read more →
image

Chapter 1 - Soru 16

2021-03-17
16. Given that the current directory is /user/home , with an application Java file in /user/home/Manager.java that uses the default package, which are the correct commands to compile and run the application in Java? A. javac Manager java Manag...
Read more →
image

Chapter 1 - Soru 15

2021-03-17
15. Which one of the following statements is true about using packages to organize your code in Java? A. Every class is required to include a package declaration. B. To create a new package, you need to add a package.init file to the directory....
Read more →
image

Chapter 1 - Soru 14

2021-03-17
14. Which of the following lines of code is not allowed as the first line of a Java class file? A. import widget.*; B. // Widget Manager C. package sprockets; D. int facilityNumber; Java sınıf dosyası için en baştaki satıra hangi kod geleme...
Read more →
image

Chapter 1 - Soru 13

2021-03-17
13. Which statements about Java are true? I. The java command can execute .java and .class files. II. Java is not object oriented. III. The javac command compiles directly into native machine code. A. I only B. III only C. II and III D. Non...
Read more →
image

Chapter 1 - Soru 12

2021-03-17
12. What is the result of compiling and executing the following class? 1: public class ParkRanger { 2:int birds = 10; 3:public static void main(String[] data) { 4:int trees = 5; 5:System.out.print(trees+birds); 6:} 7: } A. It does not comp...
Read more →
image

Chapter 1 - Soru 11

2021-03-17
11. Which statement about import statements is true? A. The class will not compile if it contains unused import statements. B. Unused import statements can be removed from the class without causing a class to become unable to be compiled. C. T...
Read more →
image

Chapter 1 - Soru 10

2021-03-15
Soru diyo ki tabloda yukarıdan aşağıya kadar kayıp değerleri doldurun.Tabloda da P1 de erişebilir değişkenlerin sayısı diyo , başlayalım.Class değişkeni olarak weight ve success ' a erişebilir çünkü bunlar class variables yani static keywordüne...
Read more →