×
THE FUTURE DEPENDS ON WHAT YOU DO TODAY
--Your friends at LectureNotes
Close

Note for Core Java - cjava By Anupam kumar MODI

  • Core Java - cjava
  • Note
  • 67 Views
  • 4 Offline Downloads
  • Uploaded 2 years ago
0 User(s)
Download PDFOrder Printed Copy

Share it with your friends

Leave your Comments

Text from page-1

Core JAVA nFundamental Concepts nBootstrapping nBasic Language Syntax nCommon Caveats nCoding Conventions Core JAVA nFundamental Concepts nBootstrapping nBasic Language Syntax nCommon Caveats nCoding Conventions 1

Text from page-2

General Purpose Computers n Most computers that we encounter are application specific… n n Light switches, microwave oven controller, VCR timer, DirecTV receiver GPCs are different… GPCs are built as generic problem solving machines n Programming is the bridge from the generic tool to a useful “machine” n Copyright 1999-2002 Simon Lok Reproduction and/or redistribution in whole or part without written authorization is expressively prohibited GPC (Computer) Organization n CPU – Central Processing Unit n n I/O – Input and Output Subsystem n n Devices and communication bus for user interaction, import/export of data and permanent storage RAM – Random Access Memory n Copyright 1999-2002 Primary location for computations High speed, volatile, “scratchpad” Simon Lok Reproduction and/or redistribution in whole or part without written authorization is expressively prohibited 2

Text from page-3

Classic Computer Organization CPU RAM Copyright 1999-2002 Simon Lok I/O Reproduction and/or redistribution in whole or part without written authorization is expressively prohibited Programming a GPC n The hardware can be controlled using “machine language” • 01001011001010010010010010101 n Assembly language is an attempt to make this more “friendly” • • • • Copyright 1999-2002 Simon Lok MOV AX, BX ADD R3, #32, R9 PUSH EAX JZ R25, [R12] Reproduction and/or redistribution in whole or part without written authorization is expressively prohibited 3

Text from page-4

High Level Languages n Machine and Assembly Language are very hard to use… • Try computing a 3rd order integral in assembly… • How about writing a GUI? n Copyright 1999-2002 So we create high level languages and compilers for translating high level programs into assembly Simon Lok Reproduction and/or redistribution in whole or part without written authorization is expressively prohibited Multiuser/Multitasking n GPCs are shared… • … between multiple programs • … between multiple users n The operating system (OS) governs the computer’s hardware resources • It allocates time for each program to run • It provides a unified interface for all of the hardware devices • It might also provide session support for multiple users Copyright 1999-2002 Simon Lok Reproduction and/or redistribution in whole or part without written authorization is expressively prohibited 4

Lecture Notes