Java Lec04

OOP in java (Defining and using class) Java is fundamentally Object-Oriented Every line of code you write in Java must be inside a Class (not counting import directives) Clear use of Variables Methods Re-use through “packages” Modularity, Encapsulation, Inheritance, Polymorphism etc. OOP Vocabulary Review Classes Definition or a blueprint of a userdefined datatype Prototypes for …

Java Lec04 Read More »

Java Lec03

LAST LECTURE EXAMPLE File: public class HelloWorldApp{ public static void main(String[] args) { System.out.println(“Hello world”); } } THINGS TO REMEMBER Name of file must match name of class It is case sensitive Processing starts in main public static void main(String[] args) Printing is done with System.out System.out.println, System.out.print Compile with “javac” Open DOS/command prompt …

Java Lec03 Read More »

Java Lec02

History Java Based on C and C++ Developed in 1991 for intelligent consumer electronic devices Green Project (According to Gosling, “the goal was … to build a system that would let us do a large, distributed, heterogeneous network of consumer electronic devices all talking to each other.” ) James Gosling Modified C++ Named Oak then …

Java Lec02 Read More »

Java Lec01

 What Is the World Wide Web? The internet is a network of computer networks worldwide The web is a tool used to retrieve information published on the internet To navigate the web we use a browser i.E. Netscape or internet explorer Brief History of the www 1968 – DARPA (Defense Advanced Research Projects Agency) contracts …

Java Lec01 Read More »

error: Content is protected !!