Minter Coder's Blog

Ders Notlarım

image

Chapter 2 - Soru 20/21

2021-03-18
20. Which type can fill in the blank? _______ pi = 3.14; A. byte B. float C. double D. short Hangisiyle doldurulabilir ? İnce bi soru görürseniz eğer sıkıntı yok , float ve double kısmını.Byte ve short da olmayacağını biliyorsunuz onlar ...
Read more →
image

Chapter 2 - Soru 19

2021-03-18
On numara beş yıldız soru kafadan yapıyorsanız artık süpersiniz diyecem :) Kağıt kaleminizle yapmaya çözmeye çalışın çok daha iyi olacaktır.Cevabını cevap anahtarından alıp bırakmak istiyorum çok anlamlı bir şekilde açıklanmış ; C. Lines 15–17 ...
Read more →
image

Chapter 2 - Soru 18

2021-03-17
18. Which of the following is not a wrapper class? A. Double B. Integer C. Long D. String Wrapper classlarla ilgili bir soru daha vardı bu chapterda.Orda açıkladım bu soruyu geçiyorum cevap D çünkü String bir wrapper class değildir.
Read more →
image

Chapter 2 - Soru 17

2021-03-17
17. What is true of the finalize() method? A. It may be called zero or one times. B. It may be called zero or more times. C. It will be called exactly once. D. It may be called one or more times. Finalize methodu arkadaşlar , bir nesne garb...
Read more →
image

Chapter 2 - Soru 16

2021-03-17
16. Of the types double , int , and short , how many could fill in the blank to have this code output 0 ? public static void main(String[] args) { _______defaultValue; System.out.println(defaultValue); } A. None B. One C. Two D. Three ...
Read more →
image

Chapter 2 - Soru 15

2021-03-17
15. How many instance initializers are in this code? 1:public class Bowling { 2:{ System.out.println(); } 3:public Bowling () { 4:System.out.println(); 5:} 6:static { System.out.println(); } 7:{ System.out.println(); } 8:} A. None B....
Read more →
image

Chapter 2 - Soru 14

2021-03-17
14. Which of the following lines contains a compiler error? String title = "Weather"; // line x1 int hot, double cold; // line x2 System.out.println(hot + " " + title); // line x3 A. x1 B. x2 C. x3 D. None of the above Hangi satır derlem...
Read more →
image

Chapter 2 - Soru 13

2021-03-17
13. Which of the following is not a valid order for elements in a class? A. Constructor, instance variables, method names B. Instance variables, constructor, method names C. Method names, instance variables, constructor D. None of the above: a...
Read more →
image

Chapter 2 - Soru 12

2021-03-17
12. Which of the following lists of primitive types are presented in order from smallest to largest data type? A. byte , char , float , double B. byte , char , double , float C. char , byte , float , double D. char , double , float , bigint ...
Read more →
image

Chapter 2 - Soru 11

2021-03-17
11. Which is the first line to trigger a compiler error? double d1 = 5f; //p1 double d2 = 5.0; //p2 float f1 = 5f; //p3 float f2 = 5.0; //p4 A. p1 B. p2 C. p3 D. p4 hangi satırda en başta derleme hatası olur.p4 çünkü f2 değerinde varsay...
Read more →
image

Chapter 2 - Soru 10

2021-03-17
10. Which best describes what the new keyword does? A. Creates a copy of an existing object and treats it as a new one B. Creates a new primitive C. Instantiates a new object D. Switches an object reference to a new one new keywordünün ne y...
Read more →
image

Chapter 2 - Soru 9

2021-03-17
9. What is the result of running this code? public class Values { integer a = Integer.valueOf("1"); public static void main(String[] nums) { integer a = Integer.valueOf("2"); integer b = Integer.valueOf("3"); System.out.println(a + b); } }...
Read more →
image

Chapter 2 - Soru 8

2021-03-17
8. Which of the following is a wrapper class? A. int B. Int C. Integer D. Object Wrapper classes in java are; int primitive türün : Integer boolean türünün : Boolean double = Double ... diğer primitive türlerin de baş harfler...
Read more →
image

Chapter 2 - Soru 7

2021-03-17
7. Which of the following does not compile? A. int num = 999; B. int num = 9_9_9; C. int num = _9_99; D. None of the above; they all compile. Hangisi compile edilmez diyo ? Cevap c çünkü javada sayıların karışmaması için _(underscore) kulla...
Read more →
image

Chapter 2 - Soru 6

2021-03-17
6. How many of the following methods compile? public String convert(int value) { return value.toString(); } public String convert(Integer value) { return value.toString(); } public String convert(Object value) { return value.toString(); ...
Read more →