Sunday, July 7, 2019

What is java?

Java is a programming language and a computing platform for application development.
It was first released by Sun Microsystem in 1995 and later acquired by Oracle Corporation in 2010.
In 2006 Sun started to make Java available under the GNU General Public License (GPL).
Lets see the phases of execution of a Java program:

  1. Writing of the program is of course done by java programmer
  2. Compilation of program is done by javac compiler, javac is the primary java compiler included in java development kit (JDK). It takes java program as input and generates java bytecode as output.
  3. In third phase, JVM executes the bytecode generated by compiler. This is called program run phase.
So, now that we understood that the primary function of JVM is to execute the bytecode produced by compiler. Each operating system has different JVM, however the output they produce after execution of bytecode is same across all operating systems. That is why we call java as platform independent language.
Note: To execute any java program, need to install the JDK

Why java language and its features?

Java is popular because of the following features:
  1. Simple programming language
  2. Object Oriented Language
  3. Distributed
  4. Robust
  5. Architecture Neutral or Machine Independent
  6. Portable
  7. Interpreted
  8. High Performance
  9. Multithreaded
  10. Dynamic

Related Posts:

  • HashMap vs ConcurrentHashMap Difference between HashMap and ConcurrentHashMap: ConcurrentHashMap is thread-safe that is the code can be accessed by single thread at a time. while HashMap is not thread-safe HashMap can be synchronized by using sy… Read More
  • Static Keyword Static is a keyword in Java, which is used for static blocks variables methods and  inner classes or nested classes A static member can be accessed directly with the class name with out creating an object.  Th… Read More
  • TestNG Annotations What is TesNG and What are the annotations in the TestNG?      Ans: TestNG is testing framework to run the test cases. TestNG supports annotations like:       @BeforeSuite       &… Read More
  • String Reverse Example public class StringReverse { public static void main(String[] args) { String str="selenium",reverse=""; for(int i=str.length()-1;i>=0;i--) { reverse=reverse+str.charAt(i… Read More
  • Hashmap vs Hashtable Difference between Hashmap and Hashtable? HashMap is non-synchronized. Hashtable is synchronized.  HashMap allows multiple threads where as hashtable doesn't HashMap is not thread-safe where as hashtable is. HashMap … Read More

0 comments:

Post a Comment

Selenium Training in Realtime

Blog helps to a student or IT employee to develop or improve skills in Software Testing.

Followers

About Me

My photo
Hyderabad, Andhra Pradesh, India
I am Automation Testing Professional. I have completed my graduation in B.Tech (Computers) from JNTU Hyderabad and started my career in Software Testing accidentally since then, I passionate on learning new technologies

Contact Form

Name

Email *

Message *

Popular Posts