├── questions.pdf
├── src
└── main
│ └── java
│ ├── question1
│ ├── Question1.md
│ ├── Hospital.java
│ ├── Main.java
│ └── CollectionsMain.java
│ └── question2
│ └── Question2.md
├── .gitignore
├── pom.xml
└── README.md
/questions.pdf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/cemdrman/interview-preparation/HEAD/questions.pdf
--------------------------------------------------------------------------------
/src/main/java/question1/Question1.md:
--------------------------------------------------------------------------------
1 | ## Core Java
2 |
3 | ### Aşağıdaki soruları cevaplayın.
4 |
5 | - final kelimesini açıklayın.(değişken, method, class seviyesinde)
6 | - static kelimesini açıklayın.
7 | - Garbage collection ne işi yarar?
8 | - synchronized kelimesini açıklayın.
9 | - Thread oluşturma yöntemleri nelerdir?(class - interface isimleri neler?) Neden iki yöntemle de yapılabilir?
10 | - Hospital.java class'ını açıklayın.
11 | - Main.java class'ında sırayla ekrana ne yazacağını söyleyin ve açıklayın.
12 | - CollectionsMain.java class'ı ekrana neler yazdırcaktır?
--------------------------------------------------------------------------------
/src/main/java/question1/Hospital.java:
--------------------------------------------------------------------------------
1 | package question1;
2 |
3 | class Hospital {
4 |
5 | private static int doctors;
6 | public final static int NURSES = 10;
7 | protected double salaries;
8 |
9 | private Hospital() {
10 | }
11 |
12 | public Hospital(int doctors, int nurses) {
13 | this.doctors = doctors;
14 | //this.NURSES = nurses;
15 | }
16 |
17 | public Hospital(int doctors) {
18 | this.doctors = doctors;
19 | }
20 |
21 | public Hospital(double salaries) {
22 | this.salaries = salaries;
23 | }
24 | }
25 |
--------------------------------------------------------------------------------
/src/main/java/question2/Question2.md:
--------------------------------------------------------------------------------
1 | ## OOP Design
2 |
3 | ### Hastane Otomasyon
4 |
5 | Bir hastanede 20 doktor, 50 hemşire vardır. Doktorlardan sadece operatör olanlar ameliyata girebilirken
6 | bütün hemşireler ameliyata girebilmektedir. Bir ameliyata en az bir doktor, hemşire ise en fazla 5 tane girebilir.
7 | Hastalar yılda bir kez ameliyat olabilir ve ayda en fazla 3 kere muayene olabilirler.
8 |
9 | Bu bilgilere göre aşağıdaki soruların cevaplarını bulun?
10 |
11 | - Bir yılda en çok muayene olan hasta kimdir?
12 | - Bir ameliyatta oluşan en yüksek maliyet nedir?
13 |
14 | Ameliyat maliyeti = (amaliyat malzeme adeti x fiyatı) + doktor ücreti
15 |
16 |
--------------------------------------------------------------------------------
/.gitignore:
--------------------------------------------------------------------------------
1 | target/
2 | !.mvn/wrapper/maven-wrapper.jar
3 | !**/src/main/**/target/
4 | !**/src/test/**/target/
5 |
6 | ### IntelliJ IDEA ###
7 | .idea
8 | .idea/modules.xml
9 | .idea/jarRepositories.xml
10 | .idea/compiler.xml
11 | .idea/libraries/
12 | *.iws
13 | *.iml
14 | *.ipr
15 |
16 | ### Eclipse ###
17 | .apt_generated
18 | .classpath
19 | .factorypath
20 | .project
21 | .settings
22 | .springBeans
23 | .sts4-cache
24 |
25 | ### NetBeans ###
26 | /nbproject/private/
27 | /nbbuild/
28 | /dist/
29 | /nbdist/
30 | /.nb-gradle/
31 | build/
32 | !**/src/main/**/build/
33 | !**/src/test/**/build/
34 |
35 | ### VS Code ###
36 | .vscode/
37 |
38 | ### Mac OS ###
39 | .DS_Store
--------------------------------------------------------------------------------
/pom.xml:
--------------------------------------------------------------------------------
1 |
2 |
5 | 4.0.0
6 |
7 | com.food-order
8 | interview-preparation
9 | 1.0-SNAPSHOT
10 |
11 |
12 | 21
13 | 21
14 | UTF-8
15 |
16 |
17 |
--------------------------------------------------------------------------------
/src/main/java/question1/Main.java:
--------------------------------------------------------------------------------
1 | package question1;
2 |
3 | class Main {
4 | public static void main(String args[]) {
5 | PatikaInterview patikaInterview = new PatikaInterview(5);
6 | }
7 | }
8 |
9 | class Interview {
10 | Interview() {
11 | System.out.println("Mülakata hoş geldin");
12 | }
13 | }
14 |
15 | class PatikaInterview extends Interview {
16 |
17 | static {
18 | System.out.println("Patika.dev");
19 | }
20 |
21 | PatikaInterview() {
22 | System.out.println("Patika.dev ile mülakata hoş geldin");
23 | }
24 |
25 | PatikaInterview(int x) {
26 | super();
27 | System.out.println("Patika.dev ile mülakata hoş geldin x " + x);
28 | }
29 | }
--------------------------------------------------------------------------------
/src/main/java/question1/CollectionsMain.java:
--------------------------------------------------------------------------------
1 | package question1;
2 |
3 | import java.util.HashSet;
4 | import java.util.List;
5 | import java.util.TreeSet;
6 |
7 | public class CollectionsMain {
8 |
9 | public static void main(String[] args) {
10 |
11 | List nameList = List.of("elif", "emir", "cem", "nehir", "melike", "melek", "elif");
12 |
13 | System.out.println("size: " + nameList.size() + " ->" + nameList);
14 |
15 | TreeSet treeSet = new TreeSet<>(nameList);
16 |
17 | System.out.println("size: " + treeSet.size() + " ->" + treeSet);
18 |
19 | HashSet hashSet = new HashSet<>(nameList);
20 |
21 | System.out.println("size: " + hashSet.size() + " ->" + hashSet);
22 | }
23 | }
24 |
--------------------------------------------------------------------------------
/README.md:
--------------------------------------------------------------------------------
1 | ## Java Mülakat Hazırlığı
2 |
3 | ### Core Java
4 |
5 | - OOP Design
6 | - Exceptions
7 | - Collection API
8 | - Stream API
9 | - Thread
10 | - Generics
11 |
12 | ### Ekstra Konular
13 | - SQL
14 | - Git
15 | - Linux
16 | - Docker
17 | - Spring Framework
18 | - Unit Test
19 |
20 | ### Önerilen Kitaplar
21 |
22 | - Code Complete
23 | - Clean Code
24 | - Effective Java
25 | - Head First Servlet and JSP
26 | - Core Java, Volume I: Fundamentals | Cay S. Horstmann
27 | - Core Java, Volume II: Fundamentals | Cay S. Horstmann
28 | - Java: The Complete Reference
29 | - Pratik Agile -> Özcan ACAR
30 | - Design Patterns -> Özcan ACAR
31 | - Pratik Git -> Özcan ACAR
32 | - Pratik Spring Core-> Özcan ACAR
33 |
34 | Özcan ACAR'ın kitapleri kendi web sitesi üzerinde ücretsizdir.
35 |
36 | ### Önerilen Eğitimler
37 |
38 | Akın KALDIROĞLU'nun aşağıdaki bütün eğitimleri
39 |
40 | - Clean Code
41 | - Java ile Nesne Merkezli Programlama
42 | - Spring ile Kurumsal Uygulama Geliştirme: Temeller
43 | - Java il RESTful Web Servisi Geliştirme: Temeller
44 | - Spring ile Kurumsal Uygulama Geliştirme: AOP
45 | - Design Patterns
46 |
47 | ### Türkçe Kaynaklar
48 |
49 | - www.bilisim.io
50 | - https://medium.com/@cemdrman
51 | - www.javaturk.org
52 |
53 | ### Java Temel Mülakat Soruları
54 |
55 | - https://www.datacamp.com/blog/java-interview-questions
56 | - https://codefinity.com/blog/The-80-Top-Java-Interview-Questions-and-Answers
57 | - https://www.guvi.in/blog/40-java-interview-questions-for-freshers/
58 |
--------------------------------------------------------------------------------