MS Teams Join MS team: OOP 2k23 Code: z957556 This platform will be used for lectures and assignments.
COURSE LEARNING OUTCOMES COURSE LEARNING OUTCOME (CLO) PROGRAM LEARNING OUTCOME (PLO) 1.Describe the concepts of object-oriented paradigm. 1 2.Examine the programs to comprehend their structures. 2 3.Apply appropriate techniques to write programs 3
Topics To be Covered Today What is Java? Why Java? Java History Versions of Java Features of Java Java Procedure Creating Simple Java Program
What is JAVA
Java is in the top 5 list of the most popular programming languages among Python and the C family of languages, according to the TIOBE index . There are thousands of job postings for experienced Java programmers, and companies in industries as diverse as fintech , healthcare, and travel. All of them are still choosing Java object oriented language as the primary programming language in their custom software development tech stack.
Java Version History
`
Class Participation What will happen if you write Main() instead of main() method?? The program will compile, but not run, because JVM will not recognize the main() method. A program that does not have the main() method gives an error at run time .
Class Participation What happens if the main() method is written without String args []? The program will compile, but not run, because JVM will not recognize the main() method. Remember JVM always looks for the main() method with a string type array as a parameter.
Exercise: Java Technology Explain the statement “There is more to Java than the Language”. Enumerate and explain Java design goals. How does Java maintain a balance between Interpretation and High Performance?. Java program is termed “Write once run everywhere”. Explain. Why is it difficult to write viruses and malicious programs with Java?
Exercise: Java Program Personalize the MyProgram program with your name so that it tells you “ Hello, my name is … ” Write a program that produces the following output: Welcome to Java Workshop! I hope you will benefit from the training. Here is a slightly modified version of MyProgram : class MyProgram2 { public void static Main(String args) { system.out.println(“First Java Program!); } } The program has some errors. Fix the errors so that the program successfully compiles and runs. What were the errors?