JAVA Programming Notes | B.Sc. (Computer Science) Semester 3 | Mumbai University | munotes
Official Notes munotes.in
JAVA Programming
B.SC. (COMPUTER SCIENCE) · SEMESTER 3
Strictly as per the University of Mumbai NEP syllabus in force for B.Sc. (Computer Science)
For B.Sc. (Computer Science) students of the University of Mumbai and all its affiliated colleges
Open the book ↓munotes.in Second Year
Contents
Module I Java Basics and OOP, Packages, Exceptions, Multithreading, Collections and JSON
- What Java Is, Where It Came From, and Why It Is Still Everywhere 1
- The Features of Java, Each One Shown Working 6
- The JVM: What Actually Runs Your Program 12
- The JDK and the JRE: What You Install, and What Went Away 17
- Installing the JDK and Running Your First Program 21
- The Structure of a Java Program, Word by Word 26
- Tokens: Every Kind of Word a Program Is Made Of 31
- Data Types: The Eight Primitives, and What a Reference Is 36
- Type Conversion and Casting 42
- The Wrapper Classes, Autoboxing and Unboxing 49
- Operators, and the Order They Are Applied In 54
- Deciding: if, else and switch 61
- Repeating: while, do-while, for and the for-each Loop 68
- Arrays 74
- Strings and the String Class 81
- Reading Input: the Scanner and the Command Line 87
- Methods 92
- The Four Principles of Object-Oriented Programming 98
- The Class 103
- The Object, the Reference, and the Heap 108
- Constructors 114
- The this Keyword 119
- static 123
- final 128
- Inheritance 133
- The super Keyword 141
- Polymorphism by Overloading 146
- Polymorphism by Overriding, and Dynamic Dispatch 151
- Abstraction 157
- Encapsulation 162
- Abstract Classes 167
- Interfaces 172
- Inner Classes 178
- Anonymous Classes and the Lambda 182
- The Object Class: toString, equals and hashCode 188
- Predefined Packages and import 194
- Writing Your Own Package, and Making a Jar 199
- Access Specifiers 204
- What an Exception Is, and the Hierarchy 209
- The Predefined Exceptions, One by One 214
- try, catch and finally 219
- The throw Statement 225
- The throws Clause 230
- Writing Your Own Exception 235
- What a Thread Is 240
- Creating a Thread: Thread and Runnable 245
- The Thread Life Cycle 250
- Controlling a Thread, and the Three Methods That Are Gone 254
- Synchronization, and the Race It Prevents 260
- wait, notify and notifyAll: the Producer and the Consumer 266
- Deadlock 271
- java.util and the Collection Framework 276
- Generics, Enough to Use a Collection 281
- The Collection Interface and the Iterator 286
- The List Interface 291
- The Set Interface 295
- The Map Interface 299
- ArrayList 304
- LinkedList 308
- HashSet 313
- TreeSet, Comparable and Comparator 318
- HashMap 323
- Collections and Arrays: the Utility Methods 328
- What JSON Is 333
- JSON Syntax, Rule by Rule 337
- The JSON Data Types Against Java's 341
- JSON with Java 346
- How This Paper Is Examined: the Journal, the Write-up and the Viva 350
- The Module 1 Practical Set 355
Module II Swing, JDBC, Servlets, JSP and JSON
- The Java Foundation Classes: AWT, Swing and What Came After 363
- JFrame: the Window 368
- JPanel 373
- JButton 377
- JTextField and the Text Components 381
- JLabel 386
- The Other Common Swing Components 390
- Layouts 395
- The Delegation Event Model 401
- ActionListener 406
- Adapter Classes 411
- A Complete Swing Application 416
- JDBC Architecture 422
- The JDBC Driver Types 427
- Connecting to a Database 431
- Statement 436
- PreparedStatement 440
- ResultSet 445
- Navigating Data 450
- ResultSetMetaData 454
- Transactions 459
- SQLException 465
- A Complete JDBC Program: Create, Read, Update, Delete 471
- What a Servlet Is, and What a Container Does 476
- Installing Tomcat and Deploying Your First Servlet 480
- The Servlet Life Cycle 485
- The Basic Structure of a Servlet 490
- An HTML Form and the Servlet That Answers It 495
- The Deployment Descriptor 502
- ServletConfig 509
- ServletContext 515
- RequestDispatcher 522
- Response Redirection 528
- Session Tracking: Why HTTP Forgets You 535
- Cookies 542
- URL Rewriting 549
- HttpSession 555
- The Filter API 564
- What a JSP Is, and Its Architecture 572
- The JSP Life Cycle 579
- Scripting Elements 586
- Directives 593
- The Implicit Objects 601
- Expression Language 607
- JSTL 614
- CRUD with JSP 623
- A Session-Managed Web Application, End to End 632
- JSON on the Web 642
- The JSON Data Types on the Wire 650
- JSON with Java: org.json, Gson and Jackson 658
- The Module 2 Practical Set 665
The chapters
Every chapter of this book comes with the B.Sc. (Computer Science) Semester 3 notes.
The cover and the contents are free to look through. Buy the notes once to read every chapter of every subject in this semester.
Notes: ₹499 Already bought it? Sign in
Free either way: question papers, the syllabus, and the cover and contents of every book.
The rest of this subject
These notes are cut from the University's printed syllabus. Open the syllabus itself, or the past papers, for the same subject.