Posts related to tag: Java


How to create ZIP file in Java

This article will help you to compress files in ZIP format and create its new ZIP file. To do this […] Continue reading »

Core Java Interview Questions and Answers Part 5

Q: What is a static block? A: It is used to initialize the static data member, It is executed before […] Continue reading »

Core Java Interview Questions and Answers Part 4

Q: What is an Interface? A: An interface is a collection of abstract methods. A class implements an interface, thereby […] Continue reading »

Core Java Interview Questions and Answers Part 3

Q: What is finalize() method? A: It is possible to define a method that will be called just before an […] Continue reading »

Core Java Interview Questions and Answers Part 2

Q: What kind of variables a class can consist of? A: A class consist of Local variable, instance variables and […] Continue reading »

Core Java Interview Questions and Answers Part 1

Q: What do you know about Java? A: Java is a high-level programming language originally developed by Sun Microsystems and […] Continue reading »

How to iterate ArrayList in Java

This tutorial will explain how you can iterate an ArrayList in Java. Initially, we always use for loop to iterate […] Continue reading »

Send email with attachment in Java using Gmail

In this example, we are going to send an email with attachment in Java program via Gmail server. JavaMail API […] Continue reading »

How to shuffle list elements in Java

On this page, we are going to shuffle or randomize elements of List in Java. In this example, we randomize the […] Continue reading »

How to parse nested JSON object in Java

In this Java tutorial, we are going to parse or read the nested JSON object using the library JSON.simple. To parse […] Continue reading »

How to write JSON object to File in Java

In this Java tutorial, we are going to write JSON objects and JSON Array in a file using Java. To […] Continue reading »

1 6 7 8 9