Posts

Showing posts with the label bytecode

Why my java programs are executing finely without using javac command?

I was having a question that why my programs are getting executed fine without using javac command which was told to use in my classroom lectures. I searched for it and got exact reason behind it. So I had a thought to share it with you friends. The main reason behind that is the version of java which I am using. I am having the latest version of java that is java SE 15.0.1  (Here is the step by step guide to install it) In all the versions earlier to java 11 you have to compile your code and then you can run it. here is the commands. javac Example.java java Example.java But if version of java is java 11 or later you can run java by itself to compile and auto-run your code. It will work well if your code is not having any error. java Example.java Now the question comes in mind that if we are able to run it just by using the java command then what is the use of javac ? I got the same, here is the answer The work of javac command is to compil...

An overview of Java

The creation of Java It was developed by James Gosling, Patrick Naughton, Chris Warth, Ed Frank, and Mike Sheridan at Sun Microsystems. ➡ Initially named as Oak but then it was renamed "Java" in 1995. from Java coffee, the coffee from Indonesia. How Java changed the Internet It simplified the web programming, Java innovated a new type of networked program called Applet that changed the way the online world thought about content. Java solved the issues like  portability  and  security  associated with the internet. What is java Applets? An applet is a special kind of Java program that is designed to be transmitted over the Internet and automatically executed by a Java-compatible web browser. If the user clicks a link that contains an applet, the applet will be automatically downloaded and run in the browser. It allows some functionality to be moved from the server to the client. It is dynamic and self-exec...

Introduction to Java, classes and objects

Image
What is flow chart? ➡     A flowchart is a type of diagram that represents a workflow or process. Also It can be defined as a diagrammatic representation of  any process. Advantages of C language ➡ Speed of compilation is comparatively high ➡ Powerful and efficient language Problems with C programming ➡ It is a structured Programming Language ➡ C is middle level language ➡ Does not offers the concept of Object oriented programming ➡ We have to write too long code for simple programs ➡ It is complex to understand. ➡ It is also complex to code. Introduction to Java It is a programming language created by James Gosling from Sun Microsystems(SUN). It is object oriented programming language. Creator of java :- James Gosling Where Java can be used? ➡ Mobile applications ( mainly android apps) ➡ Desktop applications ➡ Web servers and application servers ➡ Web applications and much more.... Advantages of using Ja...

YouTube