Java Programing laungage

Core Java Tutorial

Introduction of Core Java

How To Install JDk and Set of Path

Syntax of java Program

Difference between Java and C/C++

Advantage and Disadvantage of Java

What is Java

Why Java is not Pure Object Oriented Language

Java has Following Features/Characteristics

Limitation of Java Language and Java Internet

Common Misconception about Java

Simple Program of Java

Integrated Development Environment in java

Compile and Run Java Program

Applet and Comments in Java

Tokens in Java

Keywords in Java

Identifier and Variables in Java

Literals/Constants

Data Type in Java

Assignments and Initialization in Java

Operators in Java

Rule of Precedence in Java

Operator on Integer and Separators in Java Programming

Java Control Flow of Statements

If and If-else Selection Statement

Nested If-else and If-else-If Selection Statement

switch case and conditional operator Selection Statement

for and while Loop

do..while and for each Loop

break and labeled break statement

continue and labeled continue statement

return Statement and exit() Method

Escape Sequence for Special Characters and Unicode Code

Constants and Block or Scope

Statement in Java

Conversions between Numeric Types in Java

Import Statement in Java

User Input in Java using Scanner Class

User Input in Java using Console Class

Array in Java

One Dimensional Array

Two Dimensional Array

Two Dimensional Array Program

Command Line Argument in Java

String args Types in Java

Uneven/Jagged array in java

Math Class Function and Constant

Math Class all Function used in a program

Enumerated Types in Java

Object Oriented Programming v/s Procedural Programming

Object Oriented Programming Concepts in Java

Introduction to Class,Object and Method in Java

Class Declaration in Java

Class & Objects in java

Encapsulation in Java

Modifiers/Visibility for a Class or Interrface or member of a Class

Polymorphism in Java

Runtime polymorphism (dynamic binding or method overriding)

adplus-dvertising
jdk1.7 new features with example
Previous Home Next
The presentation gives an overview about some interesting Java 7 features:

Java Programming Language Changes Highlights (project Coin)

Example

 //Binary Literals
****package java7;
public class BinaryLiterals {
byte b = 0b01001001;
short s = 0B00100100;
int x = 0b10010010;
long y = 0B01001001;
}
Underscores in Numeric Literals
//Underscores in Numeric Literals
package java7;
public class UnderscoresInNumericLiterals {
short answer = 0b1_0_1_0_1_0;
int twoMonkeys = 0xAFFE_AFFE;
long smallestLong = 0x8000_0000_0000_0000L;
long somePhoneNumber = +49_7031_4357_0L;
double e = 2.718_281_829D;
}
// before java 7 underscores not allows in numeric literals
Strings in switch Statements
 //Strings in switch Statements
package java7;
public class StringsInSwitch {
public static void main(String[] args) {
String os = System.getProperty("os.name");
// NB: if the string in switch is null, we will see NPE on the next line!
switch (os) {
case "Linux":
System.out.println("Cool!");
break;
case "Windows":
System.out.println("Not so cool!");
break;
default:
System.out.println("Obst?");
break;
}
}
}
//Before JDK 7, only integral types can be used as selector for switch-case statement.
//In JDK 7, you can use a String object as the selector. 
The try-with-resources Statement

Before Java 7

Resources are need to be closed manually. After processing.

In Java 7

It implements autoclosable method.

Close method run automatically.

Need not to close the resources manually.

Previous Home Next