Java 2: The Complete Reference, Fourth Edition

Size: px
Start display at page:

Download "Java 2: The Complete Reference, Fourth Edition"

Transcription

1 Java 2: The Complete Reference, Fourth Edition Herbert Schildt Osborne / McGraw-Hill Berkeley New York St. Louis San Francisco Auckland Bogota Hamburg London Madrid Mexico City Milan Montreal New Delhi Panama City Paris Säo Paulo Singapore Sydney Tokyo Toronto

2 Contents Preface MBU! The Java Language xxiii 1 The Genesis of Java 3 Java's Lineage 4 The Birth of Modern Programming: C 4 The Need for C++ 6 The Stage Is Set for Java 7 The Creation of Java 7 Why Java Is Important to the Internet 9 Java Applets and Applications 10 Security 10 Portability 10 Java's Magic: The Bytecode 11 The Java Buzzwords 12 Simple 12 Object-Oriented 13 Robust 13 v/7

3 llllllllll viii Java 2: The Complete Reference Multithreaded 14 Architecture-Neutral 14 Interpreted and High Performance 14 Distributed 14 Dynamic 15 The Continuing Revolution 15 Java Is Not an Enhanced HTML 16 2 An Overview of Java 17 Object-Oriented Programming 18 Two Paradigms 18 Abstraction 18 The Three OOP Principles 19 A First Simple Program 25 Entering the Program 25 Compiling the Program 26 A Closer Look at the First Sample Program 27 A Second Short Program 29 Two Control Statements 31 The if Statement 31 The for Loop 33 Using Blocks of Code 35 Lexical Issues 37 Whitespace 37 Identifiers 37 Literais 37 Comments 38 Separators 38 The Java Keywords 38 The Java Class Libraries 39 3 Data Types, Variables, and Arrays 41 Java Is a Strongly Typed Language 42 The Simple Types 42 Integers 43 byte 44 short 44 int 44 long 45 Floating-Point Types 45 float 46 double 46 Characters 47 Booleans 48 A Closer Look at Literais 50 Integer Literais 50 Floating-Point Literais 50 Boolean Literais 51

4 Contents Character Literais 51 String Literais 52 Variables 52 Declaring a Variable 52 Dynamic Initialization 53 The Scope and Lifetime of Variables 54 Type Conversion and Casting 57 Java's Automatic Conversions 57 Casting Incompatible Types 57 Automatic Type Promotion in Expressions 59 The Type Promotion Rules 60 Arrays 61 One-Dimensional Arrays 61 Multidimensional Arrays 64 Alternative Array Declaration Syntax 70 A Few Words About Strings 70 A Note to C/C++ Programmers About Pointers 71 4 Operators 73 Arithmetic Operators 74 The Basic Arithmetic Operators 74 The Modulus Operator 76 Arithmetic Assignment Operators 76 Increment and Decrement 78 The Bitwise Operators 80 The Bitwise Logical Operators 82 The Left Shift 84 The Right Shift 86 The Unsigned Right Shift 87 Bitwise Operator Assignments 89 Relational Operators 90 Boolean Logical Operators 92 Short-Circuit Logical Operators 93 The Assignment Operator 94 The? Operator 95 Operator Precedence 96 Using Parentheses 96 5 Control Statements 99 Java's Selection Statements 100 if 100 switch 104 Iteration Statements 109 while 109 do-while 111 for 114 Some for Loop Variations 117 Nested Loops 119

5 2: The Complete Reference Jump Statements 119 Using break 120 Using continue 124 return Introducing Classes 129 Class Fundamentals 130 The General Form of a Class 130 A Simple Class 131 Declaring Objects 134 A Closer Look at new 136 Assigning Object Reference Variables 137 Introducing Methods 138 Adding a Method to the Box Class 138 Returning a Value 140 Adding a Method That Takes Parameters 142 Constructors 145 Parameterized Constructors 147 The this Keyword 149 Instance Variable Hiding 149 Garbage Collection 150 The finalize() Method 150 A Stack Class A Closer Look at Methods and Classes 155 Overloading Methods 156 Overloading Constructors 159 Using Objects as Parameters 162 A Closer Look at Argument Passing 165 Returning Objects 168 Recursion 169 Introducing Access Control 172 Understanding static 176 Introducing final 178 Arrays Revisited 179 Introducing Nested and Inner Classes 181 Exploring the String Class 185 Using Command-Line Arguments Inheritance 189 Inheritance Basics 190 Member Access and Inheritance 192 A More Practical Example 193 A Superclass Variable Can Reference a Subclass Object 196 Using super 197 Using super to Call Superclass Constructors 197 A Second Use for super 202 Creating a Multilevel Hierarchy 203 When Constructors Are Called 207 Method Overriding 208

6 * Dynamic Method Dispatch 211 Why Overridden Methods? 213 Applying Method Overriding 214 Using Abstract Classes 216 Using final with Inheritance 219 Using final to Prevent Overriding 219 Using final to Prevent Inheritance 220 The Object Class Packages and Interfaces 223 Packages 224 Defining a Package 225 Understanding CLASSPATH 226 A Short Package Example 227 Access Protection 228 An Access Example 229 Importing Packages 233 Interfaces 236 Defining an Interface 236 Implementing Interfaces 237 Applying Interfaces 241 Variables in Interfaces 245 Interfaces Can Be Extended Exception Handling 249 Exception-Handling Fundamentals 250 Exception Types 251 Uncaught Exceptions 251 Using try and catch 253 Displaying a Description of an Exception 254 Multiple catch Clauses 255 Nested try Statements 257 throw 260 throws 261 finally 263 Java's Built-in Exceptions 265 Creating Your Own Exception Subclasses 267 Using Exceptions Multithreaded Programming 271 The Java Thread Model 273 Thread Priorities 273 Synchronization 274 Messaging 274 The Thread Class and the Runnable Interface 275 The Main Thread 275 Creating a Thread 278 Implementing Runnable 278 Extending Thread 280 Choosing an Approach 282

7 2: The Complete Reference Creating Multiple Threads 282 Using isalive() and join() 284 Thread Priorities 287 Synchronization 290 Using Synchronized Methods 291 The synchronized Statement 293 Interthread Communication 295 Deadlock 301 Suspending, Resuming, and Stopping Threads 303 Suspending, Resuming, and Stopping Threads Using Java 1.1 and Earlier 304 Suspending, Resuming, and Stopping Threads Using Java Using Multithreading I/O, Applets, and Other Topics 311 I/O Basics 312 Streams 312 Byte Streams and Character Streams 313 The Predefined Streams 316 Reading Console Input 316 Reading Characters 317 Reading Strings 318 Writing Console Output 320 The PrintWriter Class 321 Reading and Writing Files 322 Applet Fundamentals 326 The transient and volatile Modifiers 330 Using instanceof 330 strictfp 333 Native Methods 334 Problems with Native Methods 338 UJT,i\M The Java Library 13 String Handling 341 The String Constructors 342 String Length 345 Special String Operations 345 String Literais 345 String Concatenation 346 String Concatenation with Other Data Types 346 String Conversion and tostring() 347 Character Extraction 349 charat() 349 getchars() 349 getbytes() 350 tochararray() 350

8 Contents xiii String Comparison 350 equals() and equalsignorecase() 351 regionmatches() 352 StartsWith() and endswith() 352 equals() Versus == 353 compareto() 353 Searching Strings 355 Modifying a String 357 substring() 357 concat() 358 replace() 359 trim() 359 Data Conversion Using valueof () 360 Changing the Case of Characters Within a String 361 StringBuffer 362 StringBuffer Constructors 362 length() and capacity() 362 ensurecapacity() 363 setlength() 363 charat() and setcharat() 364 getchars() 364 append() 365 insert() 366 reverse() 366 delete() and deletecharat() 367 replace() 368 substring() Exploring java.lang 369 Simple Type Wrappers 370 Number 371 Double and Float 371 Byte, Short, Integer, and Long 377 Character 387 Boolean 391 Void 392 Process 392 Runtime 393 Memory Management 395 Executing Other Programs 396 System 397 Using currenttimemillis() to Time Program Execution 400 Using arraycopy() 401 Environment Properties 402 Object 402 Using clone() and the Cloneable Interface 402 Class 406 ClassLoader 409

9 * Java 2: The Complete Reference Math 410 Transcendental Functions 410 Exponential Functions 410 Rounding Functions 411 Miscellaneous Math Methods 412 StrictMath 412 Compiler 413 Thread, ThreadGroup, and Runnable 413 The Runnable Interface 413 Thread 413 ThreadGroup 416 ThreadLocal and InheritableThreadLocal 422 Package 422 RuntimePermission 424 Throwable 424 SecurityManager 424 The Comparable Interface 425 The java.lang.ref and java.lang.reflect Packages 425 java.lang.ref 425 java.lang.reflect java.util Part 1: The CoUections Framework 427 CoUections Overview 429 The Collection Interfaces 430 The Collection Interface 431 The List Interface 433 The Set Interface 435 The SortedSet Interface 435 The Collection Classes 436 The ArrayList Class 437 The LinkedList Class 441 The HashSet Class 443 The TreeSet Class 444 Accessing a Collection via an Iterator 445 Using an Iterator 447 Storing User-Defined Classes in CoUections 448 Working with Maps 450 The Map Interfaces 450 The Map Classes 454 Comparators 458 Using a Comparator 459 The Collection Algorithms 463 Arrays 467 The Legacy Classes and Interfaces 471 The Enumeration Interface 471 Vector 472 Stack 477 Dictionary 479 Hashtable 480

10 Contents Properties 485 Using store() and load() 489 Collections Summary java.util Part 2: More Utility Classes 493 StringTokenizer 494 BitSet 496 Date 499 Date Comparison 501 Calendar 501 GregorianCalendar 506 TimeZone 508 SimpleTimeZone 509 Locale 510 Random 511 Observable 514 The Observer Interface 515 An Observer Example 515 Timer and TimerTask 518 The java.util.zip Package 521 The java.util.jar Package Input/Output: Exploring java.io 523 The Java I/O Classes and Interfaces 524 File 525 Directories 528 Using FilenameFilter 529 The listfiles() Alternative 530 Creating Directories 531 The Stream Classes 531 The Byte Streams 532 InputStream 532 OutputStream 533 FilelnputStream 534 FileOutputStream 536 ByteArraylnputStream 538 ByteArrayOutputStream 539 Filtered Byte Streams 541 Buffered Byte Streams 541 SequencelnputStream 545 PrintStream 547 RandomAccessFile 547 The Character Streams 548 Reader 548 Writer 548 FileReader 548 FileWriter 551 CharArrayReader 552 CharArrayWriter 553

11 * xvi Java 2: The Complete Reference BufferedReader 555 BufferedWriter 556 PushbackReader 557 PrintWriter 558 Using Stream I/O 558 Improving wc() Using a StreamTokenizer 560 Serialization 563 Serializable 563 Externalizable 564 ObjectOutput 564 ObjectOutputStream 565 Objectlnput 566 ObjectlnputStream 567 A Serialization Example 569 Stream Benefits Networking 573 Networking Basics 574 Socket Overview 574 Client/Server 575 Reserved Sockets 575 Proxy Servers 576 Internet Addressing 576 Java and the Net 577 The Networking Classes and Interfaces 577 InetAddress 578 Factory Methods 578 Instance Methods 579 TCP/IP Client Sockets 580 Whois 581 URL 583 Format 583 URLConnection 585 TCP/IP Server Sockets 586 A Caching Proxy HTTP Server 587 Source Code 587 Datagrams 608 DatagramPacket 609 Datagram Server and Client 609 Net Worth The Applet Class 613 Applet Basics 614 The Applet Class 615 Applet Architecture 618 An Applet Skeleton 618 Applet Initialization and Termination 620 Overriding update() 621 Simple Applet Display Methods 622

12 Contents Requesting Repainting 624 A Simple Banner Applet 625 Using the Status Window 628 The HTML APPLET Tag 629 Passing Parameters to Applets 630 Improving the Banner Applet 633 getdocumentbase() and getcodebase() 634 AppletContext and showdocument() 635 The AudioClip Interface 637 The AppletStub Interface 638 Outputting to the Console Event Handling 639 Two Event Handling Mechanisms 640 The Delegation Event Model 640 Events 641 Event Sources 641 Event Listeners 642 Event Classes 642 The ActionEvent Class 644 The AdjustmentEvent Class 645 The ComponentEvent Class 646 The ContainerEvent Class 646 The FocusEvent Class 647 The InputEvent Class 647 The ItemEvent Class 648 The KeyEvent Class 649 The MouseEvent Class 650 The TextEvent Class 651 The WindowEvent Class 651 Sources of Events 652 Event Listener Interfaces 653 The ActionListener Interface 654 The AdjustmentListener Interface 654 The ComponentListener Interface 654 The ContainerListener Interface 654 The FocusListener Interface 655 The ItemListener Interface 655 The Key Listener Interface 655 The MouseListener Interface 655 The MouseMotionListener Interface 656 The TextListener Interface 656 The WindowListener Interface 656 Using the Delegation Event Model 656 Handling Mouse Events 657 Handling Keyboard Events 660 Adapter Classes 664 Inner Classes 666 Anonymous Inner Classes 668

13 xviii Java 2: The Complete Reference»MSjuailil!«:«21 Introducing the AWT: Working with Windows, Graphics, and Text 671 AWT Classes 672 Window Fundamentals 675 Component 675 Container 676 Panel 676 Window 677 Frame 677 Canvas 677 Working with Frame Windows 677 Setting the Window's Dimensions 678 Hiding and Showing a Window 678 Setting a Window's Title 678 Closing a Frame Window 678 Creating a Frame Window in an Applet 679 Handling Events in a Frame Window 681 Creating a Windowed Program 686 Displaying Information Within a Window 689 Working with Graphics 689 Drawing Lines 689 Drawing Rectangles 690 Drawing Ellipses and Circles 692 Drawing Ares 693 Drawing Polygons 694 Sizing Graphics 695 Working with Color 696 Color Methods 697 Setting the Current Graphics Color 698 A Color Demonstration Applet 698 Setting the Paint Mode 700 Working with Fonts 702 Determining the Available Fonts 703 Creating and Selecting a Font 705 Obtaining Font Information 707 Managing Text Output Using FontMetrics 708 Displaying Multiple Lines of Text 710 Centering Text 712 Multiline Text Alignment 713 Exploring Text and Graphics Using AWT Controls, Layout Managers, and Menüs 719 Control Fundamentals 720 Adding and Removing Controls 720 Responding to Controls 721 Labels 721 Using Buttons 723 Handling Buttons 723

14 Contents Applying Check Boxes 727 Handling Check Boxes 727 CheckboxGroup 729 Choice Controls 732 Handling Choice Lists 732 Using Lists 735 Handling Lists 736 Managing Scroll Bars 738 Handling Scroll Bars 740 Using a TextField 742 Handling a TextField 743 Using a TextArea 745 Understanding Layout Managers 747 FlowLayout 748 BorderLayout 750 Using Insets 752 GridLayout 754 CardLayout 756 Menü Bars and Menüs 759 Dialog Boxes 766 FileDialog 772 Handling Events by Extending AWT Components 774 Extending Button 776 Extending Checkbox 777 Extending a Check Box Group 778 Extending Choice 779 Extending List 779 Extending Scrollbar 781 Exploring the Controls, Menüs, and Layout Managers 782 I 23 Images 783 File Formats 784 Image Fundamentais: Creating, Loading, and Displaying 785 Creating an Image Object 785 Loading an Image 785 Displaying an Image 786 ImageObserver 787 ImageObserver Example 789 Double Buffering 791 MediaTracker 795 ImageProducer 799 MemorylmageSource 799 ImageConsumer 801 PixelGrabber 802 ImageFilter 805 CropImageFilter 805 RGBImageFilter 807 Cell Animation 821 Additional Java 2 Imaging Classes 824

15 2: The Complete Reference 24 Additional Packages 827 The Core Java API Packages 828 Reflection 828 Remote Method Invocation (RMI) 835 A Simple Client/Server Application Using RMI 835 Text Formatting 839 DateFormat Class 839 SimpleDateFormat Class 841 ifbiiib Software Development Using Java 25 Java Beans 847 What Is a Java Bean? 848 Advantages of Java Beans 849 Application Builder Tools 849 The Bean Developer Kit (BDK) 850 Installing the BDK 850 Starting the BDK 850 Using the BDK 850 JAR Files 853 Manifest Files 853 The JAR Utility 854 Introspection 855 Design Patterns for Properties 856 Design Patterns for Events 858 Methods 859 Developing a Simple Bean 859 Create a New Bean 860 Using Bound Properties 863 Steps 863 Using the Beanlnfo Interface 865 Constrained Properties 867 Persistence 867 Customizers 867 The Java Beans API A Tour of Swing 873 JApplet 875 kons and Labels 875 Text Fields 877 Buttons 879 The JButton Class 879 Check Boxes 882 Radio Buttons 884 Combo Boxes 886 Tabbed Panes 888 Scroll Panes 891

16 Content Trees 893 Tables 898 Exploring Swing Migrating from C++ to Java 901 The Differences Between C++ and Java 902 What Java Has Removed from C New Features Added by Java 904 Features That Differ 905 Eliminating Pointers 905 Converting Pointer Parameters 906 Converting Pointers that Operate on Arrays 908 C++ Reference Parameters Versus Java Reference Parameters 911 Converting C++ Abstract Classes into Java Interfaces 915 Converting Default Arguments 919 Converting C++ Multiple-Inheritance Hierarchies 921 Destructors Versus Finalization 923 B3EH Äppiying Java 28 The DynamicBillboard Applet 931 The APPLET Tag 932 Source Code Overview 934 DynamicBillboard.ja va 934 BillData.java 942 BillTransition.java 944 ColumnTransition.java 946 FadeTransition.java 949 SmashTransition.java 953 TearTransition.java 956 UnrollTransition.java 960 Dynamic Code ImageMenu: An Image-Based Web Menü 967 The Source Image 969 The APPLET Tag 970 The Methods 971 init() 971 update() 971 latelnit() 971 paint() 971 mouseexited() 972 mousedragged() 972 mousemoved() 972 mousereleased() 973 The Code 973 Summary 976

17 2: The Complete Reference 30 The Lavatron Applet: A Sports Arena Display 977 How Lavatron Works 979 The Source Code 980 The APPLET Tag 980 Lavatron.java 980 IntHash() 985 Hot Lava Scrabblet: A Multiplayer Word Game 989 Network Security Concerns 990 The Game 991 Scoring 994 The Source Code 996 The APPLET Tag 996 Scrabblet.java 997 IntroCanvas.java 1010 Board.java 1011 Bag.java 1029 Letter.java 1031 ServerConnection.java 1037 The Server Code 1043 Server.java 1043 ClientConnection.java 1047 Enhancing Scrabblet 1051 A Using Java's Documentation Comments 1053 The javadoc Tags 1054 author 1055 deprecated 1055 { docrootj 1055 { link} 1056 param 1056 return 1056 see 1056 serial 1057 serialdata 1057 serialfield 1057 since 1057 throws 1057 version 1057 The General Form of a Documentation Comment 1058 What javadoc Outputs 1058 An Example that Uses Documentation Comments 1058 Index 1061

Java Fundamentals p. 1 The Origins of Java p. 2 How Java Relates to C and C++ p. 3 How Java Relates to C# p. 4 Java's Contribution to the Internet p.

Java Fundamentals p. 1 The Origins of Java p. 2 How Java Relates to C and C++ p. 3 How Java Relates to C# p. 4 Java's Contribution to the Internet p. Preface p. xix Java Fundamentals p. 1 The Origins of Java p. 2 How Java Relates to C and C++ p. 3 How Java Relates to C# p. 4 Java's Contribution to the Internet p. 5 Java Applets and Applications p. 5

More information

A Quick Tour p. 1 Getting Started p. 1 Variables p. 3 Comments in Code p. 6 Named Constants p. 6 Unicode Characters p. 8 Flow of Control p.

A Quick Tour p. 1 Getting Started p. 1 Variables p. 3 Comments in Code p. 6 Named Constants p. 6 Unicode Characters p. 8 Flow of Control p. A Quick Tour p. 1 Getting Started p. 1 Variables p. 3 Comments in Code p. 6 Named Constants p. 6 Unicode Characters p. 8 Flow of Control p. 9 Classes and Objects p. 11 Creating Objects p. 12 Static or

More information

Syllabus & Curriculum for Certificate Course in Java. CALL: , for Queries

Syllabus & Curriculum for Certificate Course in Java. CALL: , for Queries 1 CONTENTS 1. Introduction to Java 2. Holding Data 3. Controllin g the f l o w 4. Object Oriented Programming Concepts 5. Inheritance & Packaging 6. Handling Error/Exceptions 7. Handling Strings 8. Threads

More information

Table of Contents. Chapter 1 Getting Started with Java SE 7 1. Chapter 2 Exploring Class Members in Java 15. iii. Introduction of Java SE 7...

Table of Contents. Chapter 1 Getting Started with Java SE 7 1. Chapter 2 Exploring Class Members in Java 15. iii. Introduction of Java SE 7... Table of Contents Chapter 1 Getting Started with Java SE 7 1 Introduction of Java SE 7... 2 Exploring the Features of Java... 3 Exploring Features of Java SE 7... 4 Introducing Java Environment... 5 Explaining

More information

Core Java SYLLABUS COVERAGE SYLLABUS IN DETAILS

Core Java SYLLABUS COVERAGE SYLLABUS IN DETAILS Core Java SYLLABUS COVERAGE Introduction. OOPS Package Exception Handling. Multithreading Applet, AWT, Event Handling Using NetBean, Ecllipse. Input Output Streams, Serialization Networking Collection

More information

SCHEME OF COURSE WORK

SCHEME OF COURSE WORK SCHEME OF COURSE WORK Course Details: Course Title Object oriented programming through JAVA Course Code 15CT1109 L T P C : 3 0 0 3 Program: B.Tech. Specialization: Information Technology Semester IV Prerequisites

More information

CONTENTS. Chapter 1 Getting Started with Java SE 6 1. Chapter 2 Exploring Variables, Data Types, Operators and Arrays 13

CONTENTS. Chapter 1 Getting Started with Java SE 6 1. Chapter 2 Exploring Variables, Data Types, Operators and Arrays 13 CONTENTS Chapter 1 Getting Started with Java SE 6 1 Introduction of Java SE 6... 3 Desktop Improvements... 3 Core Improvements... 4 Getting and Installing Java... 5 A Simple Java Program... 10 Compiling

More information

ощ 'ршорвшэш! цвн-эориэу ощ 'sajbpossv # PIPG DUJ 'ssjmoossv ^ PIPG pipa w н OX ЛЮН VAV

ощ 'ршорвшэш! цвн-эориэу ощ 'sajbpossv # PIPG DUJ 'ssjmoossv ^ PIPG pipa w н OX ЛЮН VAV ощ 'ршорвшэш! цвн-эориэу ощ 'sajbpossv # PIPG DUJ 'ssjmoossv ^ PIPG pipa w н OX ЛЮН VAV Contents Preface Chapter 1 1.1 1.2 1.3 1.4 1.5 1.6 1.7 1.8 1.9 1.10 1.11 1.12 1.13 1.14 1.15 1.16 1.17 1.18 1.19

More information

1 OBJECT-ORIENTED PROGRAMMING 1

1 OBJECT-ORIENTED PROGRAMMING 1 PREFACE xvii 1 OBJECT-ORIENTED PROGRAMMING 1 1.1 Object-Oriented and Procedural Programming 2 Top-Down Design and Procedural Programming, 3 Problems with Top-Down Design, 3 Classes and Objects, 4 Fields

More information

Introduction... xv SECTION 1: DEVELOPING DESKTOP APPLICATIONS USING JAVA Chapter 1: Getting Started with Java... 1

Introduction... xv SECTION 1: DEVELOPING DESKTOP APPLICATIONS USING JAVA Chapter 1: Getting Started with Java... 1 Introduction... xv SECTION 1: DEVELOPING DESKTOP APPLICATIONS USING JAVA Chapter 1: Getting Started with Java... 1 Introducing Object Oriented Programming... 2 Explaining OOP concepts... 2 Objects...3

More information

5/23/2015. Core Java Syllabus. VikRam ShaRma

5/23/2015. Core Java Syllabus. VikRam ShaRma 5/23/2015 Core Java Syllabus VikRam ShaRma Basic Concepts of Core Java 1 Introduction to Java 1.1 Need of java i.e. History 1.2 What is java? 1.3 Java Buzzwords 1.4 JDK JRE JVM JIT - Java Compiler 1.5

More information

Mobile MOUSe JAVA2 FOR PROGRAMMERS ONLINE COURSE OUTLINE

Mobile MOUSe JAVA2 FOR PROGRAMMERS ONLINE COURSE OUTLINE Mobile MOUSe JAVA2 FOR PROGRAMMERS ONLINE COURSE OUTLINE COURSE TITLE JAVA2 FOR PROGRAMMERS COURSE DURATION 14 Hour(s) of Interactive Training COURSE OVERVIEW With the Java2 for Programmers course, anyone

More information

Contents. iii Copyright 1998 Sun Microsystems, Inc. All Rights Reserved. Enterprise Services August 1998, Revision B

Contents. iii Copyright 1998 Sun Microsystems, Inc. All Rights Reserved. Enterprise Services August 1998, Revision B Contents About the Course...xv Course Overview... xvi Course Map... xvii Module-by-Module Overview... xviii Course Objectives... xxii Skills Gained by Module... xxiii Guidelines for Module Pacing... xxiv

More information

Supporting Materials

Supporting Materials Preface p. xxiii Introduction p. xxiii Key Features p. xxiii Chapter Outlines p. xxiv Supporting Materials p. xxvi Acknowledgments p. xxvii Java Fundamentals p. 1 Bits, Bytes, and Java p. 2 The Challenge

More information

Core JAVA Training Syllabus FEE: RS. 8000/-

Core JAVA Training Syllabus FEE: RS. 8000/- About JAVA Java is a high-level programming language, developed by James Gosling at Sun Microsystems as a core component of the Java platform. Java follows the "write once, run anywhere" concept, as it

More information

Contents Chapter 1 Introduction to Programming and the Java Language

Contents Chapter 1 Introduction to Programming and the Java Language Chapter 1 Introduction to Programming and the Java Language 1.1 Basic Computer Concepts 5 1.1.1 Hardware 5 1.1.2 Operating Systems 8 1.1.3 Application Software 9 1.1.4 Computer Networks and the Internet

More information

SRM ARTS AND SCIENCE COLLEGE SRM NAGAR, KATTANKULATHUR

SRM ARTS AND SCIENCE COLLEGE SRM NAGAR, KATTANKULATHUR SRM ARTS AND SCIENCE COLLEGE SRM NAGAR, KATTANKULATHUR 603203 DEPARTMENT OF COMPUTER SCIENCE & APPLICATIONS QUESTION BANK (2017-2018) Course / Branch : MCA Semester / Year : EVEN / II Subject Name : Programming

More information

Contents. Figures. Tables. Examples. Foreword. Preface. 1 Basics of Java Programming 1. xix. xxi. xxiii. xxvii. xxix

Contents. Figures. Tables. Examples. Foreword. Preface. 1 Basics of Java Programming 1. xix. xxi. xxiii. xxvii. xxix PGJC4_JSE8_OCA.book Page ix Monday, June 20, 2016 2:31 PM Contents Figures Tables Examples Foreword Preface xix xxi xxiii xxvii xxix 1 Basics of Java Programming 1 1.1 Introduction 2 1.2 Classes 2 Declaring

More information

JAVA. Duration: 2 Months

JAVA. Duration: 2 Months JAVA Introduction to JAVA History of Java Working of Java Features of Java Download and install JDK JDK tools- javac, java, appletviewer Set path and how to run Java Program in Command Prompt JVM Byte

More information

John Cowell. Essential Java Fast. How to write object oriented software for the Internet. with 64 figures. Jp Springer

John Cowell. Essential Java Fast. How to write object oriented software for the Internet. with 64 figures. Jp Springer John Cowell Essential Java Fast How to write object oriented software for the Internet with 64 figures Jp Springer Contents 1 WHY USE JAVA? 1 Introduction 1 What is Java? 2 Is this book for you? 2 What

More information

PESIT Bangalore South Campus

PESIT Bangalore South Campus PESIT Bangalore South Campus 15CS45 : OBJECT ORIENTED CONCEPTS Faculty : Prof. Sajeevan K, Prof. Hanumanth Pujar Course Description: No of Sessions: 56 This course introduces computer programming using

More information

GUJARAT TECHNOLOGICAL UNIVERSITY

GUJARAT TECHNOLOGICAL UNIVERSITY GUJARAT TECHNOLOGICAL UNIVERSITY MASTER OF COMPUTER APPLICATIONS (COURSE CODE-6) Subject: Java Programming Subject Code: 2630002 Year II (Semester III) (W.E.F. JULY 2013) Objectives: To develop proficiency

More information

Core Java Syllabus. Overview

Core Java Syllabus. Overview Core Java Syllabus Overview Java programming language was originally developed by Sun Microsystems which was initiated by James Gosling and released in 1995 as core component of Sun Microsystems' Java

More information

Core Java Syllabus DAY -1 :

Core Java Syllabus DAY -1 : Core Java Syllabus DAY -1 : How to write Java Program Compiling and Executing java program Phases of java program Analysis of main() method What is JDK, JRE, JVM, JIT Features of Java DAY -2 : Identifiers

More information

Core Java Contents. Duration: 25 Hours (1 Month)

Core Java Contents. Duration: 25 Hours (1 Month) Duration: 25 Hours (1 Month) Core Java Contents Java Introduction Java Versions Java Features Downloading and Installing Java Setup Java Environment Developing a Java Application at command prompt Java

More information

CONTENTS. PART 1 Structured Programming 1. 1 Getting started 3. 2 Basic programming elements 17

CONTENTS. PART 1 Structured Programming 1. 1 Getting started 3. 2 Basic programming elements 17 List of Programs xxv List of Figures xxix List of Tables xxxiii Preface to second version xxxv PART 1 Structured Programming 1 1 Getting started 3 1.1 Programming 3 1.2 Editing source code 5 Source code

More information

Software Development & Education Center. Java Platform, Standard Edition 7 (JSE 7)

Software Development & Education Center. Java Platform, Standard Edition 7 (JSE 7) Software Development & Education Center Java Platform, Standard Edition 7 (JSE 7) Detailed Curriculum Getting Started What Is the Java Technology? Primary Goals of the Java Technology The Java Virtual

More information

Application Development in JAVA. Data Types, Variable, Comments & Operators. Part I: Core Java (J2SE) Getting Started

Application Development in JAVA. Data Types, Variable, Comments & Operators. Part I: Core Java (J2SE) Getting Started Application Development in JAVA Duration Lecture: Specialization x Hours Core Java (J2SE) & Advance Java (J2EE) Detailed Module Part I: Core Java (J2SE) Getting Started What is Java all about? Features

More information

Object Oriented Programming CS104 LTPC:

Object Oriented Programming CS104 LTPC: Object Oriented Programming CS04 LTPC: 4-0-4-6 Instructor: Gauravkumarsingh Gaharwar Program: Bachelor of Computer Applications Class-Semester: FYBCA(Sem-II) Email: gauravsinghg@nuv.ac.in Phone Number:

More information

SELF-STUDY. Glossary

SELF-STUDY. Glossary SELF-STUDY 231 Glossary HTML (Hyper Text Markup Language - the language used to code web pages) tags used to embed an applet. abstract A class or method that is incompletely defined,

More information

15CS45 : OBJECT ORIENTED CONCEPTS

15CS45 : OBJECT ORIENTED CONCEPTS 15CS45 : OBJECT ORIENTED CONCEPTS QUESTION BANK: What do you know about Java? What are the supported platforms by Java Programming Language? List any five features of Java? Why is Java Architectural Neutral?

More information

Java Programming Course Overview. Duration: 35 hours. Price: $900

Java Programming Course Overview. Duration: 35 hours. Price: $900 978.256.9077 admissions@brightstarinstitute.com Java Programming Duration: 35 hours Price: $900 Prerequisites: Basic programming skills in a structured language. Knowledge and experience with Object- Oriented

More information

About Codefrux While the current trends around the world are based on the internet, mobile and its applications, we try to make the most out of it. As for us, we are a well established IT professionals

More information

Virtualians.ning.pk. 2 - Java program code is compiled into form called 1. Machine code 2. native Code 3. Byte Code (From Lectuer # 2) 4.

Virtualians.ning.pk. 2 - Java program code is compiled into form called 1. Machine code 2. native Code 3. Byte Code (From Lectuer # 2) 4. 1 - What if the main method is declared as private? 1. The program does not compile 2. The program compiles but does not run 3. The program compiles and runs properly ( From Lectuer # 2) 4. The program

More information

[Course Overview] After completing this module you are ready to: Develop Desktop applications, Networking & Multi-threaded programs in java.

[Course Overview] After completing this module you are ready to: Develop Desktop applications, Networking & Multi-threaded programs in java. [Course Overview] The Core Java technologies and application programming interfaces (APIs) are the foundation of the Java Platform, Standard Edition (Java SE). They are used in all classes of Java programming,

More information

SRM ARTS AND SCIENCE COLLEGE SRM NAGAR, KATTANKULATHUR

SRM ARTS AND SCIENCE COLLEGE SRM NAGAR, KATTANKULATHUR SRM ARTS AND SCIENCE COLLEGE SRM NAGAR, KATTANKULATHUR 603203 DEPARTMENT OF COMPUTER SCIENCE & APPLICATIONS QUESTION BANK (2017-2018) Course / Branch : M.Sc.,CST Semester / Year : EVEN / III Subject Name

More information

Essential Series. Springer-Verlag London Ltd.

Essential Series. Springer-Verlag London Ltd. Essential Series Springer-Verlag London Ltd. Also in this series: Essential Visual Basic 4.0 fast 3-540-19998-5 Essential Delphi 2.0 fast 3-540-76026-1 Essential Java fast 3-540-76052-0 Essential Visual

More information

JAVA. A. Zakiuddin Ahmed. M.Sc.,M.Phil M.S.(Edn), PGDCSM, Professor in Computer Science, P. Rizwan Ahmed. MCA., M.Sc.,M.A., M.Phil.

JAVA. A. Zakiuddin Ahmed. M.Sc.,M.Phil M.S.(Edn), PGDCSM, Professor in Computer Science, P. Rizwan Ahmed. MCA., M.Sc.,M.A., M.Phil. 635 635 JAVA PROGRAMMING A. Zakiuddin Ahmed M.Sc.,M.Phil M.S.(Edn), PGDCSM, Professor in Computer Science, Mazharul Uloom College, Ambur - Vellore Dist, Tamil Nadu. 802 P. Rizwan Ahmed MCA., M.Sc.,M.A.,

More information

Java 1.8 Programming

Java 1.8 Programming One Introduction to Java 2 Usage of Java 3 Structure of Java 4 Flexibility of Java Programming 5 Two Running Java in Dos 6 Using the DOS Window 7 DOS Operating System Commands 8 Compiling and Executing

More information

Index COPYRIGHTED MATERIAL

Index COPYRIGHTED MATERIAL Index COPYRIGHTED MATERIAL Note to the Reader: Throughout this index boldfaced page numbers indicate primary discussions of a topic. Italicized page numbers indicate illustrations. A abstract classes

More information

Weiss Chapter 1 terminology (parenthesized numbers are page numbers)

Weiss Chapter 1 terminology (parenthesized numbers are page numbers) Weiss Chapter 1 terminology (parenthesized numbers are page numbers) assignment operators In Java, used to alter the value of a variable. These operators include =, +=, -=, *=, and /=. (9) autoincrement

More information

Complete Java Contents

Complete Java Contents Complete Java Contents Duration: 60 Hours (2.5 Months) Core Java (Duration: 25 Hours (1 Month)) Java Introduction Java Versions Java Features Downloading and Installing Java Setup Java Environment Developing

More information

VALLIAMMAI ENGINEERING COLLEGE

VALLIAMMAI ENGINEERING COLLEGE VALLIAMMAI ENGINEERING COLLEGE SRM Nagar, Kattankulathur 60 0 DEPARTMENT OF INFORMATION TECHNOLOGY QUESTION BANK III SEMESTER CS89- Object Oriented Programming Regulation 07 Academic Year 08 9 Prepared

More information

SRM INSTITUTE OF SCIENCE & TECHNOLOGY Faculty of Science and Humanities Department of Computer Science UNIT I - INTRODUCTION TO JAVA

SRM INSTITUTE OF SCIENCE & TECHNOLOGY Faculty of Science and Humanities Department of Computer Science UNIT I - INTRODUCTION TO JAVA SRM INSTITUTE OF SCIENCE & TECHNOLOGY Faculty of Science and Humanities Department of Computer Science Subject code : UCS15301 Subject Name : Java Programming Staff Name : S.P.ANGELIN CLARET No. of : 5

More information

Java for Programmers Course (equivalent to SL 275) 36 Contact Hours

Java for Programmers Course (equivalent to SL 275) 36 Contact Hours Java for Programmers Course (equivalent to SL 275) 36 Contact Hours Course Overview This course teaches programmers the skills necessary to create Java programming system applications and satisfies the

More information

Introduction. Assessment Test. Part I The Programmer s Exam 1

Introduction. Assessment Test. Part I The Programmer s Exam 1 4276FM.fm Page ix Thursday, October 2, 2003 11:22 AM at a Glance Introduction Assessment Test xix xxv Part I The Programmer s Exam 1 Chapter 1 Language Fundamentals 3 Chapter 2 Operators and Assignments

More information

This page intentionally left blank

This page intentionally left blank This page intentionally left blank arting Out with Java: From Control Structures through Objects International Edition - PDF - PDF - PDF Cover Contents Preface Chapter 1 Introduction to Computers and Java

More information

"Charting the Course... Java Programming Language. Course Summary

Charting the Course... Java Programming Language. Course Summary Course Summary Description This course emphasizes becoming productive quickly as a Java application developer. This course quickly covers the Java language syntax and then moves into the object-oriented

More information

11/7/12. Discussion of Roulette Assignment. Objectives. Compiler s Names of Classes. GUI Review. Window Events

11/7/12. Discussion of Roulette Assignment. Objectives. Compiler s Names of Classes. GUI Review. Window Events Objectives Event Handling Animation Discussion of Roulette Assignment How easy/difficult to refactor for extensibility? Was it easier to add to your refactored code? Ø What would your refactored classes

More information

ROEVER ENGINEERING COLLEGE Elambalur,Perambalur DEPARTMENT OF CSE

ROEVER ENGINEERING COLLEGE Elambalur,Perambalur DEPARTMENT OF CSE ROEVER ENGINEERING COLLEGE Elambalur,Perambalur-621212 DEPARTMENT OF CSE 2 marks questions with answers CS331-ADVANCED JAVA PROGRAMMING 1. What is Java Streaming? Java streaming is nothing more than a

More information

Come & Join Us at VUSTUDENTS.net

Come & Join Us at VUSTUDENTS.net Come & Join Us at VUSTUDENTS.net For Assignment Solution, GDB, Online Quizzes, Helping Study material, Past Solved Papers, Solved MCQs, Current Papers, E-Books & more. Go to http://www.vustudents.net and

More information

Contents. 1 Introduction to Computers, the Internet and the Web 1

Contents. 1 Introduction to Computers, the Internet and the Web 1 jhtp4toc.fm Page vii Friday, January 11, 2002 12:01 PM Contents Preface xxxv 1 Introduction to Computers, the Internet and the Web 1 1.1 Introduction 2 1.2 What Is a Computer? 7 1.3 Computer Organization

More information

Core Java. Basics of Java. String Handling. OOPS Concepts. Exception Handling

Core Java. Basics of Java. String Handling. OOPS Concepts. Exception Handling Core Java Basics of Java Java - What, Where and Why? History and Features of Java Internals of Java Program Difference between JDK, JRE and JVM Internal Details of JVM Variable and Data Type Unicode System

More information

ABOUT CORE JAVA COURSE SCOPE:

ABOUT CORE JAVA COURSE SCOPE: ABOUT CORE JAVA COURSE SCOPE: JAVA based business programs perform well because constant JAVA requirements help designers to create multilevel programs with a component centered approach. JAVA growth allows

More information

Object Oriented Programming with Java. Unit-1

Object Oriented Programming with Java. Unit-1 CEB430 Object Oriented Programming with Java Unit-1 PART A 1. Define Object Oriented Programming. 2. Define Objects. 3. What are the features of Object oriented programming. 4. Define Encapsulation and

More information

Core Java Syllabus. Pre-requisite / Target Audience: C language skills (Good to Have)

Core Java Syllabus. Pre-requisite / Target Audience: C language skills (Good to Have) Overview: Java programming language is developed by Sun Microsystems. Java is object oriented, platform independent, simple, secure, architectural neutral, portable, robust, multi-threaded, high performance,

More information

DOWNLOAD PDF CORE JAVA APTITUDE QUESTIONS AND ANSWERS

DOWNLOAD PDF CORE JAVA APTITUDE QUESTIONS AND ANSWERS Chapter 1 : Chapter-wise Java Multiple Choice Questions and Answers Interview MCQs Java Programming questions and answers with explanation for interview, competitive examination and entrance test. Fully

More information

This page intentionally left blank

This page intentionally left blank This page intentionally left blank Absolute Java, Global Edition Table of Contents Cover Title Page Copyright Page Preface Acknowledgments Brief Contents Contents Chapter 1 Getting Started 1.1 INTRODUCTION

More information

Java Training JAVA. Introduction of Java

Java Training JAVA. Introduction of Java Java Training Building or rewriting a system completely in Java means starting from the scratch. We engage in the seamless and stable operations of Java technology to deliver innovative and functional

More information

Compaq Interview Questions And Answers

Compaq Interview Questions And Answers Part A: Q1. What are the difference between java and C++? Java adopts byte code whereas C++ does not C++ supports destructor whereas java does not support. Multiple inheritance possible in C++ but not

More information

C ONTENTS PART I FUNDAMENTALS OF PROGRAMMING 1. and Java 3. Chapter 1 Introduction to Computers, Programs,

C ONTENTS PART I FUNDAMENTALS OF PROGRAMMING 1. and Java 3. Chapter 1 Introduction to Computers, Programs, C ONTENTS PART I FUNDAMENTALS OF PROGRAMMING 1 Chapter 1 Introduction to Computers, Programs, and Java 3 1.1 Introduction 4 1.2 What Is acomputer? 4 1.3 Programs 7 1.4 Operating Systems 9 1.5 Number Systems

More information

UNIT-3 : MULTI THREADED PROGRAMMING, EVENT HANDLING. A Multithreaded program contains two or more parts that can run concurrently.

UNIT-3 : MULTI THREADED PROGRAMMING, EVENT HANDLING. A Multithreaded program contains two or more parts that can run concurrently. UNIT-3 : MULTI THREADED PROGRAMMING, EVENT HANDLING 1. What are Threads? A thread is a single path of execution of code in a program. A Multithreaded program contains two or more parts that can run concurrently.

More information

The Sun s Java Certification and its Possible Role in the Joint Teaching Material

The Sun s Java Certification and its Possible Role in the Joint Teaching Material The Sun s Java Certification and its Possible Role in the Joint Teaching Material Nataša Ibrajter Faculty of Science Department of Mathematics and Informatics Novi Sad 1 Contents Kinds of Sun Certified

More information

Certification In Java Language Course Course Content

Certification In Java Language Course Course Content Introduction Of Java * What Is Java? * How To Get Java * A First Java Program * Compiling And Interpreting Applications * The JDK Directory Structure Certification In Java Language Course Course Content

More information

DHANALAKSHMI SRINIVASAN COLLEGE OF ENGINEERING AND TECHNOLOGY ACADEMIC YEAR (ODD SEM)

DHANALAKSHMI SRINIVASAN COLLEGE OF ENGINEERING AND TECHNOLOGY ACADEMIC YEAR (ODD SEM) DHANALAKSHMI SRINIVASAN COLLEGE OF ENGINEERING AND TECHNOLOGY ACADEMIC YEAR 2018-19 (ODD SEM) DEPARTMENT OF COMPUTER SCIENCE AND ENGINEERING SUB: OBJECT ORIENTED PROGRAMMING SEM/YEAR: III SEM/ II YEAR

More information

A- Core Java Audience Prerequisites Approach Objectives 1. Introduction

A- Core Java Audience Prerequisites Approach Objectives 1. Introduction OGIES 6/7 A- Core Java The Core Java segment deals with the basics of Java. It is designed keeping in mind the basics of Java Programming Language that will help new students to understand the Java language,

More information

Objects First with Java

Objects First with Java ^ Objects First with Java A Practical Introduction using BlueJ David J. Barnes and Michael Kolling Second edition PEARSON Prentice Hall Harlow, England London New York Boston San Francisco Toronto Sydney

More information

Java Programming. Price $ (inc GST)

Java Programming. Price $ (inc GST) 1800 ULEARN (853 276) www.ddls.com.au Java Programming Length 5 days Price $4235.00 (inc GST) Overview Intensive and hands-on, the course emphasizes becoming productive quickly as a Java application developer.

More information

COURSE DETAILS: CORE AND ADVANCE JAVA Core Java

COURSE DETAILS: CORE AND ADVANCE JAVA Core Java COURSE DETAILS: CORE AND ADVANCE JAVA Core Java 1. Object Oriented Concept Object Oriented Programming & its Concepts Classes and Objects Aggregation and Composition Static and Dynamic Binding Abstract

More information

Java Application Development

Java Application Development A Absolute Size and Position - Specifying... 10:18 Abstract Class... 5:15 Accessor Methods...4:3-4:4 Adding Borders Around Components... 10:7 Adding Components to Containers... 10:6 Adding a Non-Editable

More information

Java Programming with Eclipse

Java Programming with Eclipse One Introduction to Java 2 Usage of Java 3 Structure of Java 4 Flexibility of Java Programming 5 Using the Eclipse Software 6 Two Running Java in Eclipse 7 Introduction 8 Using Eclipse 9 Workspace Launcher

More information

Learn Java/J2EE Basic to Advance level by Swadeep Mohanty

Learn Java/J2EE Basic to Advance level by Swadeep Mohanty Basics of Java Java - What, Where and Why? History and Features of Java Internals of Java Program Difference between JDK,JRE and JVM Internal Details of JVM Variable and Data Type OOPS Conecpts Advantage

More information

Objective Questions. BCA Part III Paper XIX (Java Programming) page 1 of 5

Objective Questions. BCA Part III Paper XIX (Java Programming) page 1 of 5 Objective Questions BCA Part III page 1 of 5 1. Java is purely object oriented and provides - a. Abstraction, inheritance b. Encapsulation, polymorphism c. Abstraction, polymorphism d. All of the above

More information

B2.52-R3: INTRODUCTION TO OBJECT ORIENTATED PROGRAMMING THROUGH JAVA

B2.52-R3: INTRODUCTION TO OBJECT ORIENTATED PROGRAMMING THROUGH JAVA B2.52-R3: INTRODUCTION TO OBJECT ORIENTATED PROGRAMMING THROUGH JAVA NOTE: 1. There are TWO PARTS in this Module/Paper. PART ONE contains FOUR questions and PART TWO contains FIVE questions. 2. PART ONE

More information

B2.52-R3: INTRODUCTION TO OBJECT-ORIENTED PROGRAMMING THROUGH JAVA

B2.52-R3: INTRODUCTION TO OBJECT-ORIENTED PROGRAMMING THROUGH JAVA B2.52-R3: INTRODUCTION TO OBJECT-ORIENTED PROGRAMMING THROUGH JAVA NOTE: 1. There are TWO PARTS in this Module/Paper. PART ONE contains FOUR questions and PART TWO contains FIVE questions. 2. PART ONE

More information

JAVA. 1. Introduction to JAVA

JAVA. 1. Introduction to JAVA JAVA 1. Introduction to JAVA History of Java Difference between Java and other programming languages. Features of Java Working of Java Language Fundamentals o Tokens o Identifiers o Literals o Keywords

More information

Syllabus for Bachelor of Technology. Computer Engineering. Subject Code: 01CE0403. B.Tech. Year - II

Syllabus for Bachelor of Technology. Computer Engineering. Subject Code: 01CE0403. B.Tech. Year - II Subject Code: 01CE0403 Subject Name: Object Oriented Programming with Java B.Tech. Year - II Objective: Java is a computer programming language having feature like objectoriented, polymorphism, inheritance

More information

CHAPTER 1: A GENERAL INTRODUCTION TO PROGRAMMING 1

CHAPTER 1: A GENERAL INTRODUCTION TO PROGRAMMING 1 INTRODUCTION xxii CHAPTER 1: A GENERAL INTRODUCTION TO PROGRAMMING 1 The Programming Process 2 Object-Oriented Programming: A Sneak Preview 5 Programming Errors 6 Syntax/Compilation Errors 6 Runtime Errors

More information

MyProgram m i ng Lab. get with the programming. Through the power of practice and immediate personalized

MyProgram m i ng Lab. get with the programming. Through the power of practice and immediate personalized get with the programming Through the power of practice and immediate personalized feedback, MyProgrammingLab improves your performance. MyProgram m i ng Lab Learn more at www.myprogramminglab.com Preface

More information

Introduction to Java Programming

Introduction to Java Programming Introduction to Java Programming Length: 5 Days Description: This course presents an overview of the Java programming language, including file I/O threads. In order to build a solid foundation for Java

More information

Q1. What is the difference between an Abstract class and Interface? Q2.What are checked and unchecked exceptions?

Q1. What is the difference between an Abstract class and Interface? Q2.What are checked and unchecked exceptions? Q1. What is the difference between an Abstract class and Interface? 1. Abstract classes may have some executable methods and methods left unimplemented. Interfaces contain no implementation code. 2. A

More information

Introduction to Programming Using Java (98-388)

Introduction to Programming Using Java (98-388) Introduction to Programming Using Java (98-388) Understand Java fundamentals Describe the use of main in a Java application Signature of main, why it is static; how to consume an instance of your own class;

More information

Introduction... xxxiii. Chapter 1: Essential Java In Depth... 2

Introduction... xxxiii. Chapter 1: Essential Java In Depth... 2 Introduction... xxxiii Chapter 1: Essential Java... 1 In Depth... 2 All about Java... 2 Java Appears... 3 All about Bytecodes... 3 Features of Java... 4 Java Environment... 6 Java Development Kit... 6

More information

Murach s Beginning Java with Eclipse

Murach s Beginning Java with Eclipse Murach s Beginning Java with Eclipse Introduction xv Section 1 Get started right Chapter 1 An introduction to Java programming 3 Chapter 2 How to start writing Java code 33 Chapter 3 How to use classes

More information

40) Class can be inherited and instantiated with the package 41) Can be accessible anywhere in the package and only up to sub classes outside the

40) Class can be inherited and instantiated with the package 41) Can be accessible anywhere in the package and only up to sub classes outside the Answers 1) B 2) C 3) A 4) D 5) Non-static members 6) Static members 7) Default 8) abstract 9) Local variables 10) Data type default value 11) Data type default value 12) No 13) No 14) Yes 15) No 16) No

More information

WA1278 Introduction to Java Using Eclipse

WA1278 Introduction to Java Using Eclipse Lincoln Land Community College Capital City Training Center 130 West Mason Springfield, IL 62702 217-782-7436 www.llcc.edu/cctc WA1278 Introduction to Java Using Eclipse This course introduces the Java

More information

Building Java Programs

Building Java Programs Building Java Programs A Back to Basics Approach Stuart Reges I Marty Stepp University ofwashington Preface 3 Chapter 1 Introduction to Java Programming 25 1.1 Basic Computing Concepts 26 Why Programming?

More information

Introduction to Java Programming

Introduction to Java Programming Introduction to Java Programming Length: 5 Days Description: This course presents an overview of the Java programming language, including file I/O threads. In order to build a solid foundation for Java

More information

ANNA UNIVERSITY OF TECHNOLOGY COIMBATORE B.E./B.TECH DEGREE EXAMINATIONS: NOV/DEC JAVA PROGRAMMING

ANNA UNIVERSITY OF TECHNOLOGY COIMBATORE B.E./B.TECH DEGREE EXAMINATIONS: NOV/DEC JAVA PROGRAMMING ANNA UNIVERSITY OF TECHNOLOGY COIMBATORE B.E./B.TECH DEGREE EXAMINATIONS: NOV/DEC 2010 080230021-JAVA PROGRAMMING 1. What are the Java Features? 1. Compiled and Interpreted 2. Platform Independent and

More information

Page 1

Page 1 Java 1. Core java a. Core Java Programming Introduction of Java Introduction to Java; features of Java Comparison with C and C++ Download and install JDK/JRE (Environment variables set up) The JDK Directory

More information

JAVA+ANDROID CURRICULUM 6 WEEKS. INTRODUCTION TO JAVA Understanding Requirement: Why Java Why Java is important to the Internet JAVA on LINUX Platform

JAVA+ANDROID CURRICULUM 6 WEEKS. INTRODUCTION TO JAVA Understanding Requirement: Why Java Why Java is important to the Internet JAVA on LINUX Platform JAVA+ANDROID CURRICULUM 6 WEEKS INTRODUCTION TO JAVA Understanding Requirement: Why Java Why Java is important to the Internet JAVA on LINUX Platform INTRODUCTION TO JAVA VIRTUAL MACHINE Java Virtual Machine

More information

JAVA & J2EE UNIT -1 INTRODUCTION

JAVA & J2EE UNIT -1 INTRODUCTION JAVA & J2EE UNIT -1 INTRODUCTION 1. List and explain the java buzzwords 2. Explain different access specifires in java,with example [6 marks] 3. Explain any 5 object oriented features supported by java,

More information

AP COMPUTER SCIENCE JAVA CONCEPTS IV: RESERVED WORDS

AP COMPUTER SCIENCE JAVA CONCEPTS IV: RESERVED WORDS AP COMPUTER SCIENCE JAVA CONCEPTS IV: RESERVED WORDS PAUL L. BAILEY Abstract. This documents amalgamates various descriptions found on the internet, mostly from Oracle or Wikipedia. Very little of this

More information

Java Interview Questions

Java Interview Questions Java Interview Questions Dear readers, these Java Interview Questions have been designed specially to get you acquainted with the nature of questions you may encounter during your interview for the subject

More information

(2½ hours) Total Marks: 75

(2½ hours) Total Marks: 75 (2½ hours) Total Marks: 75 N. B.: (1) All questions are compulsory. (2) Makesuitable assumptions wherever necessary and state the assumptions mad (3) Answers to the same question must be written together.

More information

Big Java Late Objects

Big Java Late Objects Big Java Late Objects Horstmann, Cay S. ISBN-13: 9781118087886 Table of Contents 1. Introduction 1.1 Computer Programs 1.2 The Anatomy of a Computer 1.3 The Java Programming Language 1.4 Becoming Familiar

More information

SYLLABUS JAVA COURSE DETAILS. DURATION: 60 Hours. With Live Hands-on Sessions J P I N F O T E C H

SYLLABUS JAVA COURSE DETAILS. DURATION: 60 Hours. With Live Hands-on Sessions J P I N F O T E C H JAVA COURSE DETAILS DURATION: 60 Hours With Live Hands-on Sessions J P I N F O T E C H P U D U C H E R R Y O F F I C E : # 4 5, K a m a r a j S a l a i, T h a t t a n c h a v a d y, P u d u c h e r r y

More information

The AWT Event Model 9

The AWT Event Model 9 The AWT Event Model 9 Course Map This module covers the event-based GUI user input mechanism. Getting Started The Java Programming Language Basics Identifiers, Keywords, and Types Expressions and Flow

More information

Data Structures and Abstractions with Java

Data Structures and Abstractions with Java Global edition Data Structures and Abstractions with Java Fourth edition Frank M. Carrano Timothy M. Henry Data Structures and Abstractions with Java TM Fourth Edition Global Edition Frank M. Carrano University

More information

Points To Remember for SCJP

Points To Remember for SCJP Points To Remember for SCJP www.techfaq360.com The datatype in a switch statement must be convertible to int, i.e., only byte, short, char and int can be used in a switch statement, and the range of the

More information