SlideShare ist ein Scribd-Unternehmen logo
1 von 13
Disclaimer: This presentation is prepared by trainees of
baabtra as a part of mentoring program. This is not official
document of baabtra –Mentoring Partner
Baabtra-Mentoring Partner is the mentoring division of baabte System Technologies Pvt .
Ltd
Typing Speed
Week

Target Achieved

1

40

23

2

40

27

3

40

28
Jobs Applied
Week

Company

1
2
3

Designation

Applied Date

Current Status

Intel info group System Engineer

16-9-2013

Short listed

Alcatel-lucent

10-9-2013

Waiting

Software Engineer
Muhammed Noufal V T
muhammednoufalvt@gmail.c
om
www.facebook.com/vtnoufa
lvt
twitter.com/noufalurnappy
in.linkedin.com/pub/muham
med-noufal
9744003056
What is Java Bean

• It is a reusable Software component.
• A bean encapsulate many object into
one object.
• We can access this object from
multiple places.
• It provides easy maintenance.
• It provide methods to set and get the
values of the properties, known as
getter and setter methods.
Creation of Java bean
Generating Getters and Setters
Setting values for it’s
properties
import com.baabte.exambean;
import java.util.ArrayList;
public class ques {
ArrayList <exambean> ques = new ArrayList<exambean>();
Public int questn(){
exambean qs1 = new exambean();
qs1.setQuestion("1. Who give music to the song Sare jahan se acha..?");
qs1.setA("A.Pandit Ravi Shankar");
qs1.setB("B.Subha lakshmi");
qs1.setC("C.AR Rahman");
qs1.setD("D.Muhammad Iqbal");
qs1.setAnswer("A");
ques.add(qs1);
}
Getting values for it’s properties
public static void main(String[] args) {
int count=0;
boolean flag=false;
ques quesObj = new ques();
ArrayList newList = quesObj.getList();
int size = newList.size();
for(int i=0;i<size;i++)
{
do
{

else if(!answer.matches("A") && !answer.matches("B")
&& !answer.matches("C") && !answer.matches("D")
)
{flag=true;
System.out.println("Invalid Entry");

flag=false;
exambean beanObj=(exambean) newList.get(i);
System.out.println(beanObj.getQuestion());
System.out.println(beanObj.getA());
System.out.println(beanObj.getB());
System.out.println(beanObj.getC());
System.out.println(beanObj.getD());
System.out.println("Pleas Enter Your Answer: ");
Scanner ans = new Scanner(System.in);
String answer= ans.nextLine().toUpperCase();
if(answer.matches(beanObj.getAnswer())){
count++;

}
}

}

}
}
while(flag);}
System.out.println("Total Score= "+count);
Contact Us
Emarald Mall (Big Bazar Building)
Mavoor Road, Kozhikode,
Kerala, India.
Ph: + 91 – 495 40 25 550

Start up Village
Eranakulam,
Kerala, India.
Email: info@baabtra.com

NC Complex, Near Bus Stand
Mukkam, Kozhikode,
Kerala, India.
Ph: + 91 – 495 40 25 550

Weitere ähnliche Inhalte

Ähnlich wie Usage of bean class in java

Mulesoft kochi meetup 8 custom connector
Mulesoft kochi meetup 8   custom connectorMulesoft kochi meetup 8   custom connector
Mulesoft kochi meetup 8 custom connectorSupriya Pawar
 
01-Java Introduction.ppt
01-Java Introduction.ppt01-Java Introduction.ppt
01-Java Introduction.pptJyothiAmpally
 
Mayur_Soni_Internship for python for free
Mayur_Soni_Internship for python for freeMayur_Soni_Internship for python for free
Mayur_Soni_Internship for python for freeMayurSoni51
 
Unit Testing and Why it Matters
Unit Testing and Why it MattersUnit Testing and Why it Matters
Unit Testing and Why it MattersyahyaSadiiq
 
Arnab-resume-new
Arnab-resume-newArnab-resume-new
Arnab-resume-newArnab Roy
 
SoniaResume.
SoniaResume.SoniaResume.
SoniaResume.gloom12
 
Introduction to django framework
Introduction to django frameworkIntroduction to django framework
Introduction to django frameworkKnoldus Inc.
 
TECHNICAL RESOURCE PORTAL_JUHI
TECHNICAL RESOURCE PORTAL_JUHITECHNICAL RESOURCE PORTAL_JUHI
TECHNICAL RESOURCE PORTAL_JUHIJuhi Sharma
 
KanumuruKushalKumarResume
KanumuruKushalKumarResumeKanumuruKushalKumarResume
KanumuruKushalKumarResumekushal kanumuru
 
Mubashir Ahmed ERP SAP Basis Consultant Resume with 3 Yr Exp
Mubashir Ahmed ERP SAP Basis Consultant Resume with 3 Yr ExpMubashir Ahmed ERP SAP Basis Consultant Resume with 3 Yr Exp
Mubashir Ahmed ERP SAP Basis Consultant Resume with 3 Yr ExpMubashir Ahmed
 
IRJET - Farm Direct Marketing
IRJET - Farm Direct MarketingIRJET - Farm Direct Marketing
IRJET - Farm Direct MarketingIRJET Journal
 
Bsc. Csit Final Year Internship Presentation
Bsc. Csit Final Year Internship PresentationBsc. Csit Final Year Internship Presentation
Bsc. Csit Final Year Internship PresentationDark Shadow
 

Ähnlich wie Usage of bean class in java (20)

Post and get methods
Post and get methodsPost and get methods
Post and get methods
 
Mulesoft kochi meetup 8 custom connector
Mulesoft kochi meetup 8   custom connectorMulesoft kochi meetup 8   custom connector
Mulesoft kochi meetup 8 custom connector
 
List manipulation in java (add,delete,view,modify)
List manipulation in java (add,delete,view,modify)List manipulation in java (add,delete,view,modify)
List manipulation in java (add,delete,view,modify)
 
01-Java Introduction.ppt
01-Java Introduction.ppt01-Java Introduction.ppt
01-Java Introduction.ppt
 
Grid view in asp.net
Grid view in asp.netGrid view in asp.net
Grid view in asp.net
 
Mayur_Soni_Internship for python for free
Mayur_Soni_Internship for python for freeMayur_Soni_Internship for python for free
Mayur_Soni_Internship for python for free
 
Unit Testing and Why it Matters
Unit Testing and Why it MattersUnit Testing and Why it Matters
Unit Testing and Why it Matters
 
Arnab-resume-new
Arnab-resume-newArnab-resume-new
Arnab-resume-new
 
Linq in asp.net
Linq in asp.netLinq in asp.net
Linq in asp.net
 
SoniaResume.
SoniaResume.SoniaResume.
SoniaResume.
 
ravi kumar s
ravi kumar sravi kumar s
ravi kumar s
 
Introduction to django framework
Introduction to django frameworkIntroduction to django framework
Introduction to django framework
 
TECHNICAL RESOURCE PORTAL_JUHI
TECHNICAL RESOURCE PORTAL_JUHITECHNICAL RESOURCE PORTAL_JUHI
TECHNICAL RESOURCE PORTAL_JUHI
 
gopal hp
gopal hpgopal hp
gopal hp
 
KanumuruKushalKumarResume
KanumuruKushalKumarResumeKanumuruKushalKumarResume
KanumuruKushalKumarResume
 
Profile-Amal
Profile-AmalProfile-Amal
Profile-Amal
 
Mubashir Ahmed ERP SAP Basis Consultant Resume with 3 Yr Exp
Mubashir Ahmed ERP SAP Basis Consultant Resume with 3 Yr ExpMubashir Ahmed ERP SAP Basis Consultant Resume with 3 Yr Exp
Mubashir Ahmed ERP SAP Basis Consultant Resume with 3 Yr Exp
 
Functions in javascript
Functions in javascriptFunctions in javascript
Functions in javascript
 
IRJET - Farm Direct Marketing
IRJET - Farm Direct MarketingIRJET - Farm Direct Marketing
IRJET - Farm Direct Marketing
 
Bsc. Csit Final Year Internship Presentation
Bsc. Csit Final Year Internship PresentationBsc. Csit Final Year Internship Presentation
Bsc. Csit Final Year Internship Presentation
 

Mehr von baabtra.com - No. 1 supplier of quality freshers

Mehr von baabtra.com - No. 1 supplier of quality freshers (20)

Agile methodology and scrum development
Agile methodology and scrum developmentAgile methodology and scrum development
Agile methodology and scrum development
 
Best coding practices
Best coding practicesBest coding practices
Best coding practices
 
Core java - baabtra
Core java - baabtraCore java - baabtra
Core java - baabtra
 
Acquiring new skills what you should know
Acquiring new skills   what you should knowAcquiring new skills   what you should know
Acquiring new skills what you should know
 
Baabtra.com programming at school
Baabtra.com programming at schoolBaabtra.com programming at school
Baabtra.com programming at school
 
99LMS for Enterprises - LMS that you will love
99LMS for Enterprises - LMS that you will love 99LMS for Enterprises - LMS that you will love
99LMS for Enterprises - LMS that you will love
 
Php sessions & cookies
Php sessions & cookiesPhp sessions & cookies
Php sessions & cookies
 
Php database connectivity
Php database connectivityPhp database connectivity
Php database connectivity
 
Chapter 6 database normalisation
Chapter 6  database normalisationChapter 6  database normalisation
Chapter 6 database normalisation
 
Chapter 5 transactions and dcl statements
Chapter 5  transactions and dcl statementsChapter 5  transactions and dcl statements
Chapter 5 transactions and dcl statements
 
Chapter 4 functions, views, indexing
Chapter 4  functions, views, indexingChapter 4  functions, views, indexing
Chapter 4 functions, views, indexing
 
Chapter 3 stored procedures
Chapter 3 stored proceduresChapter 3 stored procedures
Chapter 3 stored procedures
 
Chapter 2 grouping,scalar and aggergate functions,joins inner join,outer join
Chapter 2  grouping,scalar and aggergate functions,joins   inner join,outer joinChapter 2  grouping,scalar and aggergate functions,joins   inner join,outer join
Chapter 2 grouping,scalar and aggergate functions,joins inner join,outer join
 
Chapter 1 introduction to sql server
Chapter 1 introduction to sql serverChapter 1 introduction to sql server
Chapter 1 introduction to sql server
 
Chapter 1 introduction to sql server
Chapter 1 introduction to sql serverChapter 1 introduction to sql server
Chapter 1 introduction to sql server
 
Microsoft holo lens
Microsoft holo lensMicrosoft holo lens
Microsoft holo lens
 
Blue brain
Blue brainBlue brain
Blue brain
 
5g
5g5g
5g
 
Aptitude skills baabtra
Aptitude skills baabtraAptitude skills baabtra
Aptitude skills baabtra
 
Gd baabtra
Gd baabtraGd baabtra
Gd baabtra
 

Kürzlich hochgeladen

How to Make a Pirate ship Primary Education.pptx
How to Make a Pirate ship Primary Education.pptxHow to Make a Pirate ship Primary Education.pptx
How to Make a Pirate ship Primary Education.pptxmanuelaromero2013
 
A Critique of the Proposed National Education Policy Reform
A Critique of the Proposed National Education Policy ReformA Critique of the Proposed National Education Policy Reform
A Critique of the Proposed National Education Policy ReformChameera Dedduwage
 
Beyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global ImpactBeyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global ImpactPECB
 
Employee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptxEmployee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptxNirmalaLoungPoorunde1
 
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdfssuser54595a
 
microwave assisted reaction. General introduction
microwave assisted reaction. General introductionmicrowave assisted reaction. General introduction
microwave assisted reaction. General introductionMaksud Ahmed
 
Student login on Anyboli platform.helpin
Student login on Anyboli platform.helpinStudent login on Anyboli platform.helpin
Student login on Anyboli platform.helpinRaunakKeshri1
 
Introduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptxIntroduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptxpboyjonauth
 
Sanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdfSanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdfsanyamsingh5019
 
1029-Danh muc Sach Giao Khoa khoi 6.pdf
1029-Danh muc Sach Giao Khoa khoi  6.pdf1029-Danh muc Sach Giao Khoa khoi  6.pdf
1029-Danh muc Sach Giao Khoa khoi 6.pdfQucHHunhnh
 
mini mental status format.docx
mini    mental       status     format.docxmini    mental       status     format.docx
mini mental status format.docxPoojaSen20
 
Advanced Views - Calendar View in Odoo 17
Advanced Views - Calendar View in Odoo 17Advanced Views - Calendar View in Odoo 17
Advanced Views - Calendar View in Odoo 17Celine George
 
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptxPOINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptxSayali Powar
 
Q4-W6-Restating Informational Text Grade 3
Q4-W6-Restating Informational Text Grade 3Q4-W6-Restating Informational Text Grade 3
Q4-W6-Restating Informational Text Grade 3JemimahLaneBuaron
 
Separation of Lanthanides/ Lanthanides and Actinides
Separation of Lanthanides/ Lanthanides and ActinidesSeparation of Lanthanides/ Lanthanides and Actinides
Separation of Lanthanides/ Lanthanides and ActinidesFatimaKhan178732
 
Hybridoma Technology ( Production , Purification , and Application )
Hybridoma Technology  ( Production , Purification , and Application  ) Hybridoma Technology  ( Production , Purification , and Application  )
Hybridoma Technology ( Production , Purification , and Application ) Sakshi Ghasle
 
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...Marc Dusseiller Dusjagr
 

Kürzlich hochgeladen (20)

How to Make a Pirate ship Primary Education.pptx
How to Make a Pirate ship Primary Education.pptxHow to Make a Pirate ship Primary Education.pptx
How to Make a Pirate ship Primary Education.pptx
 
A Critique of the Proposed National Education Policy Reform
A Critique of the Proposed National Education Policy ReformA Critique of the Proposed National Education Policy Reform
A Critique of the Proposed National Education Policy Reform
 
INDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptx
INDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptxINDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptx
INDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptx
 
Beyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global ImpactBeyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global Impact
 
Employee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptxEmployee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptx
 
TataKelola dan KamSiber Kecerdasan Buatan v022.pdf
TataKelola dan KamSiber Kecerdasan Buatan v022.pdfTataKelola dan KamSiber Kecerdasan Buatan v022.pdf
TataKelola dan KamSiber Kecerdasan Buatan v022.pdf
 
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
 
microwave assisted reaction. General introduction
microwave assisted reaction. General introductionmicrowave assisted reaction. General introduction
microwave assisted reaction. General introduction
 
Student login on Anyboli platform.helpin
Student login on Anyboli platform.helpinStudent login on Anyboli platform.helpin
Student login on Anyboli platform.helpin
 
Introduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptxIntroduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptx
 
Sanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdfSanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdf
 
1029-Danh muc Sach Giao Khoa khoi 6.pdf
1029-Danh muc Sach Giao Khoa khoi  6.pdf1029-Danh muc Sach Giao Khoa khoi  6.pdf
1029-Danh muc Sach Giao Khoa khoi 6.pdf
 
mini mental status format.docx
mini    mental       status     format.docxmini    mental       status     format.docx
mini mental status format.docx
 
Advanced Views - Calendar View in Odoo 17
Advanced Views - Calendar View in Odoo 17Advanced Views - Calendar View in Odoo 17
Advanced Views - Calendar View in Odoo 17
 
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptxPOINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
 
Q4-W6-Restating Informational Text Grade 3
Q4-W6-Restating Informational Text Grade 3Q4-W6-Restating Informational Text Grade 3
Q4-W6-Restating Informational Text Grade 3
 
Separation of Lanthanides/ Lanthanides and Actinides
Separation of Lanthanides/ Lanthanides and ActinidesSeparation of Lanthanides/ Lanthanides and Actinides
Separation of Lanthanides/ Lanthanides and Actinides
 
Mattingly "AI & Prompt Design: The Basics of Prompt Design"
Mattingly "AI & Prompt Design: The Basics of Prompt Design"Mattingly "AI & Prompt Design: The Basics of Prompt Design"
Mattingly "AI & Prompt Design: The Basics of Prompt Design"
 
Hybridoma Technology ( Production , Purification , and Application )
Hybridoma Technology  ( Production , Purification , and Application  ) Hybridoma Technology  ( Production , Purification , and Application  )
Hybridoma Technology ( Production , Purification , and Application )
 
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
 

Usage of bean class in java

  • 1.
  • 2. Disclaimer: This presentation is prepared by trainees of baabtra as a part of mentoring program. This is not official document of baabtra –Mentoring Partner Baabtra-Mentoring Partner is the mentoring division of baabte System Technologies Pvt . Ltd
  • 4. Jobs Applied Week Company 1 2 3 Designation Applied Date Current Status Intel info group System Engineer 16-9-2013 Short listed Alcatel-lucent 10-9-2013 Waiting Software Engineer
  • 5. Muhammed Noufal V T muhammednoufalvt@gmail.c om www.facebook.com/vtnoufa lvt twitter.com/noufalurnappy in.linkedin.com/pub/muham med-noufal 9744003056
  • 6. What is Java Bean • It is a reusable Software component. • A bean encapsulate many object into one object. • We can access this object from multiple places. • It provides easy maintenance. • It provide methods to set and get the values of the properties, known as getter and setter methods.
  • 9.
  • 10.
  • 11. Setting values for it’s properties import com.baabte.exambean; import java.util.ArrayList; public class ques { ArrayList <exambean> ques = new ArrayList<exambean>(); Public int questn(){ exambean qs1 = new exambean(); qs1.setQuestion("1. Who give music to the song Sare jahan se acha..?"); qs1.setA("A.Pandit Ravi Shankar"); qs1.setB("B.Subha lakshmi"); qs1.setC("C.AR Rahman"); qs1.setD("D.Muhammad Iqbal"); qs1.setAnswer("A"); ques.add(qs1); }
  • 12. Getting values for it’s properties public static void main(String[] args) { int count=0; boolean flag=false; ques quesObj = new ques(); ArrayList newList = quesObj.getList(); int size = newList.size(); for(int i=0;i<size;i++) { do { else if(!answer.matches("A") && !answer.matches("B") && !answer.matches("C") && !answer.matches("D") ) {flag=true; System.out.println("Invalid Entry"); flag=false; exambean beanObj=(exambean) newList.get(i); System.out.println(beanObj.getQuestion()); System.out.println(beanObj.getA()); System.out.println(beanObj.getB()); System.out.println(beanObj.getC()); System.out.println(beanObj.getD()); System.out.println("Pleas Enter Your Answer: "); Scanner ans = new Scanner(System.in); String answer= ans.nextLine().toUpperCase(); if(answer.matches(beanObj.getAnswer())){ count++; } } } } } while(flag);} System.out.println("Total Score= "+count);
  • 13. Contact Us Emarald Mall (Big Bazar Building) Mavoor Road, Kozhikode, Kerala, India. Ph: + 91 – 495 40 25 550 Start up Village Eranakulam, Kerala, India. Email: info@baabtra.com NC Complex, Near Bus Stand Mukkam, Kozhikode, Kerala, India. Ph: + 91 – 495 40 25 550

Hinweis der Redaktion

  1. Open EmployeeBean.java fileRight click inside the file select Source-&gt;Generate Getters and Setters