0% found this document useful (0 votes)
11 views1 page

Java Data Types and Control Structures

The document outlines key programming concepts including data types (Boolean, Double, etc.), control statements (if, switch), loops (for, while), and runtime polymorphism. It also describes CRUD operations with corresponding HTTP methods and mentions the use of Lombok for generating getters and setters. Additionally, it highlights various annotations like @Component and @Service for dependency injection in an application context.
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
11 views1 page

Java Data Types and Control Structures

The document outlines key programming concepts including data types (Boolean, Double, etc.), control statements (if, switch), loops (for, while), and runtime polymorphism. It also describes CRUD operations with corresponding HTTP methods and mentions the use of Lombok for generating getters and setters. Additionally, it highlights various annotations like @Component and @Service for dependency injection in an application context.
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd

Data types : Boolean,Double,byte,short,int,long,float,char,String

Control Statement:if,if-else,else-if,nested if,Switch


Loops: For,while,do-while,nested for,enhanced for(for each loop)
Runtime Polymorphism:A sub class implement a main class function
and implement sub class function
Constructor:It has same name has class name and it will be initialized
automatically when a object is created
This -> Used Disthinguish between Instance Variable and variable
Inheritance -> It allows child class to inherit the parent class

CRUD OPERATION:
[Link] – Post Mapping
[Link] – Get Mapping
[Link] – Post Mapping
[Link] – Delete Mapping

Lombok – private method get data – Getter and Setter

@Component @Enitity @Service Annotaion -> makes to bring the


data to IOC container(application main)
@AUTOWIRED ->
@Component -> import the files to main files
@Primary -> important if a class to mention it one or two
@fluice-> more important it is first

You might also like