Quantcast
Channel: S. Nageswara Rao, Corporate Trainer – Way2Java
Browsing all 505 articles
Browse latest View live

Java Array to String

After knowing how to convert string to array, let us find the other way of converting array to string. Following links of this same web site, way2java.com, get you the job. 1. Char & Byte array to...

View Article


Java Extends

An OOPs language is meant more for reusability. It achieves reusability with "has-a" relation (through composition) and "is-a" relation (through inheritance). For "has-a" relationship, known as...

View Article


Java Extend Multiple Classes

In the earlier, Bird-Ostrich inheritance program, Ostrich extends only one class, Bird, because Ostrich wants to walk and the method is there in Bird’s class. Now Ostrich also wants to eat but the...

View Article

Java Implements

We have seen earlier the meaning of extends and importance of inheritance (with example of multilevel inheritance) in Java Extends and Java Extend Multiple classes (knowing these is very essential to...

View Article

Java Extends and Implements

Once you know the basic structure of a Java class, know inheritance with concrete classes and abstract classes, know to inherit interfaces, it is the time for both extends and implements where you...

View Article


Extends vs Implements

Java uses two keywords to inherit – extends and implements. The difference of them and their usage is trivial to understand. Go through the following combinations and rules one-by-one. Write small...

View Article

Java Date to String

It is required in Java, many a times in programming, to convert Date to String and also String to Date. To do either, the best class we can use is java.text.SimpleDateFormat. Following explanation...

View Article

Java String to Date

After converting Date to String, let us see the other way of converting String to Date. The same java.text.SimpleDateFormat class used in Date to String is used here. Following code explains. 1 2 3 4 5...

View Article


Java Parse String to Date

Sometimes, it is also needed to convert String to Date; we have seen earlier how to convert Date to String. Following code gets you the conversion of string to date. We use SimpleDateFormat class...

View Article


Java Conversions

Following topics give the conversions between different concepts of Java like, date to string, array to string, string to arraylist, numbers to words etc. OOPS 1. Abstract class vs Interface 2. Java...

View Article

JDBC Performance Tuning

1.0 Introduction 1.1 Connection Pooling 2.0 Auto-Commit 3.0 Closing JDBC objects 4.0 Optimization with Statement 4.1 Choose right Statement interface 4.2 Do batch update 4.3 Do batch retrieval using...

View Article

Servlets and JSP Performance Tuning

The following pages describe performance-tuning techniques (PTT) for developing high performance and scalable JSP (JavaServer Pages) pages and servlets. This means building applications that are...

View Article

Core Java Performance Tuning – 1

1. Introduction 2. When to think of Performance 3. JVM’s and JIT Compilers 4. Default constructors 5. Constructor Hierarchies 6. Instance variables Vs Class(static) variables 7. Recycling Objects 8....

View Article


Java Performance Tuning – 2

1.0 Introduction 2.0 Algorithm Analysis 3.0 Data Structures 3.1 Sets and SortedSets 3.2 Lists 3.3 Maps and Sorted Maps 4.0 Summary 5.0 JVM Tuning 5.1 Server Mode 5.2 Sizing the Heap 5.3 GC Monitoring...

View Article

ArrayList vs LinkedList

There comes two classes ArrayList and LinkedList to store objects. Internally, ArrayList stores elements as an array form and LinkedList stores elements in node form. Due to their internal style of...

View Article


String Java

Java string manipulation is easy due to String and StringBuffer classes’ predefined methods. Following link gives you all the possible operations you can do on string in Java. 1. One stop destination...

View Article

JDK 1.7 Features

JDK 1.7 (Java SE 7), code names as Dolphin was released on July 28, 2011. Following is the list of new features added, of daily importance. 1. String in Switch Expression 2. Underscores Between Digits...

View Article


Access Specifier vs Access Modifier in Java

For a novice, both the words specifier and modifier looks one and the same and may be confusing. If you go by the literal meaning, it is more confusing, say, an access specifier specifies the access...

View Article

Overloading and Overriding Java

Overloading and overriding are two concepts Java supports in supporting OOP methodology. Both are very different in their meaning and implementation (or usage). A) Links for Method Overloading: 1....

View Article

Annotations Introduction

Annotations were introduced with JDK 1.5 with the addition of APT (Annotation Processing Tool) tool where you are required to give a separate path for processor tool. Later in JDK 1.6, the tool was...

View Article
Browsing all 505 articles
Browse latest View live