DevelopersTpoint
Home
Core Java
Basics Of Java
History Of Java
Simple Hello Program
Internal Details of Sample Java Program
How to set Path od JDK
Temporary
Permanent
Difference Between The JDK,JRE And JVM
Internal Details Of JVM
Unicode System
OOPs Concepts
object And class
Inheritance And Aggregation
Polymorphism,Abstraction And Encapsulation
Method Overloading And Method Overriding
Constructor
Difference Between Constructor and Method
Basic Java Keywords
this
super
final
transient
native
Static And Dynamic Binding
Abstract class And Interface
Difference Between Abstract class And Interface
Access Modifier
public
protected
private
default
Difference Between protected and default
Instance Initializer Block
Object class And object Cloning
Arrays in Java
Single Dimensional Arrays
Multi Dimensional Arrays
Programming Questions Related To Arrays
Package
Call By Value And Call By Reference
Command Line Argument
String Handling
Introduction Of String
Immutable and Mutable String
Difference Between Immutable and Mutable String
String Comparision
String Buffer And String Builder
Difference Between String Buffer And String Builder
Creating Immutable class
String Tokenizer class
SubString
How To Get The All Possible SubString Of Any Input String
Exception Handling
Introduction
Checked Exception
Unchecked Exception
Error
When StackOverFlowError And OutOfMemory Error Occured?
Difference Between Exception And Error
try catch Block
Multiple catch Block And Nested try Block
finally Block
throws And throw Keyword
Difference Between throws And throw Keyword
Custom Exception
Exception Handling With Method Overriding
Exception Propogation
Nested classes
Non-static nested classes(inner class)
Member Inner class
Anonymous Inner class
Local Inner class
static nested classes
Difference Between Inner class and Nested class
Nested Interface
Multithreading
Intoduction
What Is Multithreading?
Life Cycle
Create Simple Thread class
By extending Thread class
By implementing runnable interface
Methods Of Thread class
sleep()
start() And run()
join()
wait()
notify() And notifyAll()
Thread Priority
Daemon Thread
Garbage Collection
Special Cases
Can we start a thread twice?
What if we call run() method directly instead start() method?
Synchronization
Introduction
Types Of Synchronization
Process Synchronization
Thread Synchronization
Mutual Exclusion
By synchronized method
By synchronized block
static synchonization
Inter Thread Communication
Serialization And Deserialization
Marker Interface
Transient keyword
I/O
JDBC
Introduction
5 Steps to connect with Databsae
Collection
Collection Framework
ArrayList
LinkedList
HashSet
LinkedHashSet
TreeSet
HashMap
LinkedHashMap
TreeMap
HashTable
Comparator Interface
Comparable Interface
Vector class
Generics
I18N and L10N
Java Mail API
Servlet
Introduction
Servlet Life Cycle
Session Management
Filter
Servlet with Annotation
JSP
Introduction
JSP Custom Tags
MVC Architecture
Struts
Struts2 Features And MVC Architecture
Core Component Of Struts2.x
Configuration File
Steps To Create Sample Project
Few Main Interceptors
Hibernate
Introduction and Architecture
Xml configuration vs Annotation based configuration
About Xml configuration
Imp. Programming Question
Basic Programming Questions
Print Alphabet
Find odd or even number
Fahrenheit to Celsius
Swapping two number
Largest of three Integer
Find Factorial of the Input Number
Armstrong Number
Floyed's Triangle
Reverse String and check for palindrom
Reverse Integer and check for palindrom
Comparision Of Two String
Fibonacci Series
Check and Print Prime Number
Print all SubString Of Input String
Matrix
Addition
Multiplication
Transpose: Symmetric Matrix if Transpose of Matrix is equal.
Data Structure
LinkedList
Binary Tree and print Height and Depth
Searching
Linear/Sequential Search
Binary Search
Sorting
Bubble Sort
Merge Sort
Heap Sort
Quick Sort
Selection Sort
Insertion Sort
Radix Sort
Shell Sort
File Handling
Find Unique and Frequent word of the Input file
Read File and get the number of words and line
Find the the file with special extension from folder
Copy the text from one file to another which file path given by command line argument
Find IP Address of Host and Garbage Collection
Pascal Triangle
HCF(GCD) and LCM
WebServices
Introduction
SOAP
Top Down Approach(Contract First)
Bottum Up Approach(Service First)
Rest API
Difference Between Soap and Rest
DATABASE
Imp. SQL Queries
MySQL
MongoDB
PostgreSQL
miscellaneous
AEM/CQ5
JQERY
MAVEN
NODEJS
PhantomJS
CasperJS
ECMA Script
FFMPEG
Spring
Code by
Haakblog
Tuesday, 25 March 2014
Searching:Linear Search
05:35
No comments
/** * */ package com.developerstpoint.jeetendra; import java.util.Scanner; /** * @author jeetendra * */ public class LinearSearch { public static void linearsearch(int numberarray[],int numberforsearch){ int i; int arrlength = numberarray.length-1; for(i = 0; i <=arrlength ; i++){ if(numberarray[i] == numberforsearch){ System.out.println("Number is searched at "+(i+1)+ " position of Number Array" ); /* For sigle search uncomment the break */ //break; } } if(i== arrlength){ System.out.println("Searching Element is Absent"); } } public static void main(String...linearsearch){ Scanner sc = new Scanner(System.in); System.out.println("Enter the number of element of numberarray"); int elementsnumber = sc.nextInt(); int []numberarray = new int[elementsnumber]; for(int i =0; i
Email This
BlogThis!
Share to X
Share to Facebook
Share to Pinterest
Newer Post
Older Post
Home
0 comments:
Post a Comment
Subscribe to:
Post Comments (Atom)
Social Profiles
Popular
Tags
Blog Archives
AEM /CQ5: How to install and work with it.
AEM /CQ5: How to install and work with it. Introduction Adobe Experience Manager (AEM) is a server-side application that runs o...
Replication in AEM
Replication in AEM Introduction Replication agents are central to Adobe Experience Manager (AEM) as the mechanism used to: ...
Backup and Restore: AEM/CQ5
Backup and Restore: AEM/CQ5 There are two ways to back up and restore CRX repository content: You can create an external b...
Largest of three number
/** * */ package com.developerstechpoint; import java.util.Scanner; /** * @author jeetendra * */ public class LargestNumberofThre...
Find odd or even number
/** * */ package com.developerstechpoint; import java.util.Scanner; /** * @author jeetendra * */ public class FindOddOrEven { /...
Binary Tree ,Depth and Height
Step [1]:- First Create Binary Tree class here is TreeNode.java which is given below:- package com.developerstechpoint.Tree; public cl...
AEM/CQ5:VLT tool
Introduction The FileVault tool (VLT) is a tool developed by Adobe that maps the content of a CRX/CQ instance to your file system. ...
Struts2.x: Core Component
Core Components Of Struts2.x :- [1]- Interceptors [2]- ValueStack [3]- ActionContext [4]- ActionInvocation [5]- OGNL [1]-Intercepto...
JDBC: 5 Steps to connect to Database
5 Steps to connect to the database in java There are 5 steps to connect any java application with the database in java using JDBC. T...
Struts 2.x: Configuration File
The struts application contains two main configuration files struts.xml file and struts.properties file.The struts.properties file is ...
Labels
connection
odbc
Statement
Blog Archive
▼
2014
(51)
►
June
(2)
►
May
(2)
►
April
(1)
▼
March
(9)
Searching:Linear Search
WS:Introduction
Heap Sort
Merge Sort
Quick Sort
Insertion sort
Selection Sort
HCF(GCD) and LCM
Pascal Triangle
►
February
(4)
►
January
(33)
►
2013
(8)
►
December
(8)
Blogger Widgets
0 comments:
Post a Comment