JAVA Definitions and Examples Expressions Operators Escape Characters Conversion
ID: 3575300 • Letter: J
Question
JAVA
Definitions and Examples
Expressions
Operators
Escape Characters
Conversions
Arrays
Strings
Algorithms
Area of Circle
Circumference of Circle
Celsius to Fahrenheit
Fahrenheit to Celsius
Max
Min
Odd
Even
Array Sum
Array Search (find int, find String)
Palindrome
Prime Number
GCD
Fibonacci Number
Factorial
Reverse an Array
Reverse a String (and part of a String)
Count Digits in String array
Count Even/Odd numbers in String array
String split
Find Average in Array
Bubble Sort (int)
Bubble Sort (String)
Monotone (first repeating character)
Monotone (last repeating character)
Monotone (none repeating character)
Design Patterns
Singleton
State
Adapter (Wrapper)
Threads
Encapsulation, Inheritance, Abstraction, Polymorphism, Interfaces
Explanation / Answer
Expressions:It is basic building block with variables,methoda calls,operators,operators.
e.g. int a=5+3;
===================================================================
Operators:It is symbol used to perform different operations.
e.g.+,-,/,*,& etc
====================================================================
escape characters:Characters which appers just after baclslash() and they have special meaning.
e.g. =Inserts a tab in the text at this point.
/n=
Inserts a newline in the text at this point.
====================================================================
Conversions: It means value is changed from one type to other.
e.g.String s=Interger.valueOf(5)//converts string to int
====================================================================
Arrays:It is used to hold values of same type such character ,integers etc.
e.g.int a[]=new int [10]//array of integer
=======================================================================
String:It is sequence of characters.
e.g.String s="Akshay";
========================================================================
Encapsulation:It is defined wrapping the data and code acting on the data (methods) together as a single unit.
e.g.Creating object of class is encapsulation.
ClassA obj=new ClassA();
==============================================================================
Inheritance=It defined as adapting a property of base class.It is done using extends keyword in java.
e.g.
class A
{.....}
Class B extends A
{ }
Here B is child class and class A is parent class.
===================================================================
Abstraction=It means hide unncessary details and show only important data or function.
e.g.It is done by using getter and setter method.
=================================================================
Polymorphism:It is defined as mechanism to have more than one form,In java,
e.g.IS-A relation is polymorphic
Inserts a newline in the text at this point.
====================================================================
Conversions: It means value is changed from one type to other.
e.g.String s=Interger.valueOf(5)//converts string to int
====================================================================
Arrays:It is used to hold values of same type such character ,integers etc.
e.g.int a[]=new int [10]//array of integer
=======================================================================
String:It is sequence of characters.
e.g.String s="Akshay";
========================================================================
Encapsulation:It is defined wrapping the data and code acting on the data (methods) together as a single unit.
e.g.Creating object of class is encapsulation.
ClassA obj=new ClassA();
==============================================================================
Inheritance=It defined as adapting a property of base class.It is done using extends keyword in java.
e.g.
class A
{.....}
Class B extends A
{ }
Here B IS-A A
=============================================================
Interfaces:It is collection of all abstract method.Abstract methods dont have definations.
interface A
{
abstract void methA();
abstract void methB();
}
Inserts a newline in the text at this point.
====================================================================
Conversions: It means value is changed from one type to other.
e.g.String s=Interger.valueOf(5)//converts string to int
====================================================================
Arrays:It is used to hold values of same type such character ,integers etc.
e.g.int a[]=new int [10]//array of integer
=======================================================================
String:It is sequence of characters.
e.g.String s="Akshay";
========================================================================
Encapsulation:It is defined wrapping the data and code acting on the data (methods) together as a single unit.
e.g.Creating object of class is encapsulation.
ClassA obj=new ClassA();
==============================================================================
Inheritance=It defined as adapting a property of base class.It is done using extends keyword in java.
e.g.
class A
{.....}
Class B extends A
{ }
Here B is child class and class A is parent class.
===================================================================
Abstraction=It means hide unncessary details and show only important data or function.
e.g.It is done by using getter and setter method.
=================================================================
Polymorphism:It is defined as mechanism to have more than one form,In java,
e.g.IS-A relation is polymorphic
Inserts a newline in the text at this point.
====================================================================
Conversions: It means value is changed from one type to other.
e.g.String s=Interger.valueOf(5)//converts string to int
====================================================================
Arrays:It is used to hold values of same type such character ,integers etc.
e.g.int a[]=new int [10]//array of integer
=======================================================================
String:It is sequence of characters.
e.g.String s="Akshay";
========================================================================
Encapsulation:It is defined wrapping the data and code acting on the data (methods) together as a single unit.
e.g.Creating object of class is encapsulation.
ClassA obj=new ClassA();
==============================================================================
Inheritance=It defined as adapting a property of base class.It is done using extends keyword in java.
e.g.
class A
{.....}
Class B extends A
{ }
Here B IS-A A
=============================================================
Interfaces:It is collection of all abstract method.Abstract methods dont have definations.
interface A
{
abstract void methA();
abstract void methB();
}
Related Questions
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.