Wednesday, August 7, 2024

Assignment quesions 2024

 ASSIGNMENT QUESTIONS 2023

 Unit-1 
1 Write a java program to convert binary to decimal and decimal to binary(Do not use predefind methods)
2 Explain String class in Java. 

 Unit-2
1 Explain String Buffer Class Explain String Builder Class 
2 Explain the  terms static keyword and this keyword with example
 Unit-3
 1. Program to print the duplicate elements of an array. 
 2. Write a Java program to find the transpose of a Matrix

Thursday, August 1, 2024

2-1 syallabus LAB&THEORY

 2-1 java syallabus

2024 II-I java LAB Syllabus

 List of Experiments: 

Exercise – 1

 a. Write a JAVA program to display default value of all primitive data type of JAVA  

b.Write a java program that display the roots of a quadratic equation ax2+bx=0. Calculate the discriminate D and basing on value of D, describe the nature of root. 

Exercise -2

 a. Write a JAVA program to search for an element in a given list of elements using binary search mechanism. 

 b. Write a JAVA program to sort for an element in a given list of elements using bubble sort 

Exercise - 3

 a. Write a JAVA program to implement class mechanism. Create a class, methods and invoke them inside main method. 

b. Write a JAVA program implement method overloading. 

c. Write a JAVA program to implement constructor. 

d. Write a JAVA program to implement constructor overloading.


Exercise - 4 

a. Write a JAVA program to implement Single Inheritance

 b. Write a JAVA program to implement multi level Inheritance 

c. Write a JAVA program for abstract class to find areas of different shapes 

Exercise - 5 

a. Write a JAVA program give example for “super” keyword. 

b. Write a JAVA program to implement Interface. What kind of Inheritance can be achieved? 

c. Write a JAVA program that implements Runtime polymorphism 

Exercise - 6

 a. Write a JAVA program that describes exception handling mechanism 

b. Write a JAVA program Illustrating Multiple catch clauses 

c. Write a JAVA program for creation of Java Built-in Exceptions d. Write a JAVA program for creation of User Defined Exception 

Exercise - 7 

a. Write a JAVA program that creates threads by extending Thread class. First thread display “Good Morning “every 1 sec, the second thread displays “Hello “every 2 seconds and the third display “Welcome” every 3 seconds, (Repeat the same by implementing Runnable) 

b. Write a program illustrating is Alive and join () 

c. Write a Program illustrating Daemon Threads. d. Write a JAVA program Producer Consumer Problem

Exercise – 8 

a. Write a JAVA program that import and use the user defined packages 

b. Without writing any code, build a GUI that display text in label and image in an ImageView (use JavaFX) 

c. Build a Tip Calculator app using several JavaFX components and learn how to respond to user interactions with the GUI 

Exercise – 9 

a. Write a java program that connects to a database using JDBC

 b. Write a java program to connect to a database using JDBC and insert values into it. 

c. Write a java program to connect to a database using JDBC and delete values from it

2024 II-1 Syllabus

 UNIT 1

 Object Oriented Programming: Basic concepts, Principles. Data Types, Variables, and Operators: Introduction, Data Types in Java, Declaration of Variables, Data Types, Type Casting, Scope of Variable Identifier, Literal Constants, Symbolic Constants, Formatted Output with printf() Method, Static Variables and Methods, Attribute, Final. Introduction to 

Operators: Precedence and Associativity of Operators, Assignment Operator (=), Basic Arithmetic Operators, Increment (++) and Decrement (--) Operators, Ternary Operator, Relational Operators, Boolean Logical Operators, Bitwise Logical Operators. 

Control Statements: Introduction, if Expression, Nested if Expressions, if–else Expressions, Ternary Operator, Switch Statement, Iteration Statements, while Expression, do–while Loop, for Loop, Nested for Loop, For–Each for Loop, Break Statement, Continue Statement. 

Program Structure in Java: Introduction, Writing Simple Java Programs, Elements or Tokens in Java Programs, Java Statements, Command Line Arguments, User Input to Programs, Escape Sequences Comments, Programming Style. 

UNIT 2 

Classes and Objects: Introduction, Class Declaration and Modifiers, Class Members, Declaration of Class Objects, Assigning One Object to Another, Access Control for Class Members, Accessing Private Members of Class, Constructor Methods for Class, Overloaded  Constructor Methods, Nested Classes, Final Class and Methods, Passing Arguments by Value and by Reference, Keyword this. 

Methods: Introduction, Defining Methods, Overloaded Methods, Overloaded Constructor Methods, Class Objects as Parameters in Methods, Access Control, Recursive Methods, Nesting of Methods, Overriding Methods, Attributes Final and Static. 

UNIT 3 

Arrays: Introduction, Declaration and Initialization of Arrays, Storage of Array in Computer Memory, Accessing Elements of Arrays, Operations on Array Elements, Assigning Array to Another Array, Dynamic Change of Array Size, Sorting of Arrays, Search for Values in Arrays.

 Inheritance: Introduction, Process of Inheritance, Types of Inheritances, Universal Super Class-Object Class, Inhibiting Inheritance of Class Using Final, Access Control and Inheritance, Multilevel Inheritance, Application of Keyword Super, Constructor Method and Inheritance, Method Overriding, Dynamic Method Dispatch, Abstract Classes, Interfaces and Inheritance. 

Interfaces: Introduction, Declaration of Interface, Implementation of Interface, Multiple Interfaces, Nested Interfaces, Inheritance of Interfaces, Default Methods in Interfaces, Static Methods in Interface, Functional Interfaces.

 UNIT 4 

Packages and Java Library: Introduction, Defining Package, Importing Packages and Classes into Programs, Path and Class Path, Access Control, Packages in Java SE, Java.lang Package and its Classes, Class Object, class Math, Java util Classes and Interfaces. 

Exception Handling: Introduction, Hierarchy of Standard Exception Classes, Keywords throws and throw, try, catch, and finally Blocks, Multiple Catch Clauses, Class Throwable, Unchecked Exceptions, Checked Exceptions. 

UNIT 5

 Multithreaded Programming: Introduction, Need for Multiple Threads Multithreaded Programming for Multi-core Processor, Thread Class, Main Thread-Creation of New Threads, Thread States, Thread Priority-Synchronization. 

Java Database Connectivity: Introduction, JDBC Architecture, Installing MySQL and MySQL Connector/J, JDBC Environment Setup, Establishing JDBC Database Connections, ResultSet Interface 

Java FX GUI: Java FX Scene Builder, Java FX App Window Structure, displaying text and image, event handling.

 Text Books: 1. JAVA one step ahead, Anitha Seth, B.L.Juneja, Oxford. 

2. Joy with JAVA, Fundamentals of Object Oriented Programming, DebasisSamanta, MonalisaSarma, Cambridge, 2023. 

3. JAVA 9 for Programmers, Paul Deitel, Harvey Deitel, 4th Edition, Pearson. 

References Books: 1. The complete Reference Java, 11thedition, Herbert Schildt,TMH 

2. Introduction to Java programming, 7th Edition, Y Daniel Liang, Pearson 

Online Resources: 1. https://nptel.ac.in/courses/106/105/106105191/ 2.https://infyspringboard.onwingspan.com/web/en/app/toc/lex_auth_012880464547618 816347_shared/overview 

Machine Learning Course Assignments 2024(Dec)

 Machine Learning Course Assignments 2024 1)   Explain the concept of "generalization" in machine learning. Why is it a central go...