1.Who is the founder of Java?
Ans.James Gosling and team who works at SunMicrosystem.
2.What are the features of Java?
Ans.
- High Level Language
- Platform Independent: write once run anywhere (WORA).
- Object Oriented Programming Language.
- Strictly Typed Language
- Robust and secure
- Automatic Garbage Collection
- Multi Threading
- Backward Compatibility
3.what is the Latest version of Java?
Ans. java 26
4.Can we compile a Java code without a main method?
Ans.Yes
Explanation:As we know compiler checks for syntax.
5.Can we run the a Java code without a main method?
Ans.No
6.Is Java compiled or Interpreted?
Ans. java is a hybrid language.
7.what is the difference between JDK, JRE and JVM?
8.Explain Jvm architecture?
Class Loader sub system:
Load .class files to jvm
And verifies.class files and it finds vulnerabilities if it is there
Memory management:
Method area-
Static variables will be stored area
Heap area-
Instance variables
Objects will be stored inside heap area.
Stack area-
Local variables
Threads
Program counters -
Holds the current and next instructions
Native method area-
Java-> python, c
Execution Engine:
=>Interprator
=>JIT Compiler
=>Garbage Collector
Top comments (0)