You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
A singleton is a classthat can only be instantiated once. This singleton pattern restricts the instantiation of a classto one object. This is useful when exactly one object is needed to coordinate actions across the system. The concept is sometimes generalized to systems that operate more efficiently when only one object exists, or that restrict the instantiation to a certain number of objects.
@@ -390,6 +394,10 @@ It is also a good practice to annotate overridden methods with `@Override` to ma
390
394
391
395
* `HashSet` vs `TreeSet`.
392
396
397
+
* `HashMap` vs `Set`
398
+
399
+
* `Stack` vs `Queue`
400
+
393
401
* Explain Generics in Java?
394
402
- Generics were included in Java language to provide stronger type checks, by allowing the programmer to define, which classes can be used with other classes
395
403
> In a nutshell, generics enable types (classes and interfaces) to be parameters when defining classes, interfaces and methods. Much like the more familiar formal parameters used in method declarations, type parameters provide a way for you to re-use the same code with different inputs. The difference is that the inputs to formal parameters are values, while the inputs to type parameters are types. ([Official Java Documentation](https://docs.oracle.com/javase/tutorial/java/generics/why.html))
@@ -545,10 +553,14 @@ It is also a good practice to annotate overridden methods with `@Override` to ma
545
553
546
554
* What is `volatile` modifier? [Jenkov](http://tutorials.jenkov.com/java-concurrency/volatile.html)
547
555
556
+
* The clasess in the atomic package expose a common set of methods: `get`, `set,`, `lazyset`, `compareAndSet`, and `weakCompareAndSet`. Please describe them.
557
+
548
558
#### Exceptions
549
559
550
560
* How does the `try{} catch{} finally{}` works? [Link](http://tutorials.jenkov.com/java-exception-handling/basic-try-catch-finally.html)
551
561
562
+
*What is the difference between a `CheckedException` and an `Un-CheckedException`?
563
+
552
564
#### Others
553
565
554
566
*What is serialization?Howdo you implement it?
@@ -1003,6 +1015,10 @@ It is also a good practice to annotate overridden methods with `@Override` to ma
@@ -1044,6 +1060,8 @@ It is also a good practice to annotate overridden methods with `@Override` to ma
1044
1060
1045
1061
* What is Robolectric? [Robolectric](http://robolectric.org/)
1046
1062
1063
+
* What are the disadvantages of using Roboelectric?
1064
+
1047
1065
* What is UI-Automator? [Developer Android](https://developer.android.com/training/testing/ui-testing/uiautomator-testing.html)
1048
1066
1049
1067
* Explain unit test.
@@ -1059,7 +1077,9 @@ It is also a good practice to annotate overridden methods with `@Override` to ma
1059
1077
1060
1078
### Others
1061
1079
1062
-
* Describe how REST APIs work.
1080
+
* Describe how REST APIs work. What is REST?
1081
+
1082
+
* Describe other forms of web API architecutre. [GraphQL] (https://medium.com/mindorks/what-is-graphql-and-using-it-on-android-ab8e493abdd7) [SOAP] (https://www.w3.org/TR/ws-arch/)
0 commit comments