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
Copy file name to clipboardExpand all lines: README.md
+14-1Lines changed: 14 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -16,4 +16,17 @@ Core Java Interview Question
16
16
* Abstraction
17
17
* Platform independent:** A single program works on different platforms without any modification.
18
18
* High Performance:** JIT (Just In Time compiler) enables high performance in Java. JIT converts the bytecode into machine language and then JVM starts the execution.
19
-
* Multi-threaded:** A flow of execution is known as a Thread. JVM creates a thread which is called the main thread. The user can create multiple threads by extending the thread class or by implementing the Runnable interface.
19
+
* Multi-threaded:** A flow of execution is known as a Thread. JVM creates a thread which is called the main thread. The user can create multiple threads by extending the thread
20
+
class or by implementing the Runnable interface.
21
+
22
+
#### Q3 How does Java enable high performance?
23
+
Java uses Just In Time compiler to enable high performance. It is used to convert the instructions into bytecodes.
24
+
25
+
#### Q4 What do you mean by Constructor?
26
+
#### Constructor can be explained in detail with enlisted points:
27
+
28
+
* When a new object is created in a program a constructor gets invoked corresponding to the class.
29
+
* The constructor is a method which has the same name as the class name.
30
+
* If a user doesn’t create a constructor implicitly a default constructor will be created.
31
+
* The constructor can be overloaded.
32
+
* If the user created a constructor with a parameter then he should create another constructor explicitly without a parameter.
0 commit comments