Skip to content

Commit 0076ac2

Browse files
authored
Update README.md
1 parent f32bc64 commit 0076ac2

File tree

1 file changed

+14
-1
lines changed

1 file changed

+14
-1
lines changed

README.md

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,4 +16,17 @@ Core Java Interview Question
1616
* Abstraction
1717
* Platform independent:** A single program works on different platforms without any modification.
1818
* 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

Comments
 (0)