Javarevisited

Learn Java, Programming, Spring, Hibernate throw tutorials, examples, and interview questions

Saturday, July 12, 2025

Enhanced For Loop Example and Puzzle in Java

›
From Java 5 onwards, we have a for-each loop for iterating over collection and array in Java. For each loop allows you to traverse over col...
1 comment:

JUnit4 Annotations : Test Examples and Tutorial

›
JUnit4 Annotations are a single big change from JUnit 3 to JUnit 4 which is introduced in Java 5. With annotations creating and running ...
8 comments:

JUnit Testing Tips - Constructor is Called Before Executing Test Methods? Example

›
Even though almost all Java programmers either use JUnit or TestNG for their unit testing need along with some mock object generation libra...
3 comments:

How to Fix Exception in thread "main" java.lang.NoClassDefFoundError: Running Java from Command line

›
The "Exception in thread "main" java.lang.NoClassDefFoundError: helloworldapp/HelloWorldApp" error comes when you are ...
2 comments:

How to fix java.io.NotSerializableException: org.apache.log4j.Logger Error in Java? Example

›
java.io.NotSerializableException: org.apache.log4j.Logger error says that an instance of org.apache.lo4j.Logger is not Serializable. T...
11 comments:

Binary Search vs Contains Performance in Java List - Example

›
There are two ways to search an element in a List class, by using contains() method or by using Collections.binarySearch() method. There ...
9 comments:

How to Fix Eclipse No Java Virtual Machine was found Windows JRE JDK 64 32 bit Error? Example

›
One of my readers was installing Eclipse in his Windows 7 x86 machine and emailed me about this error " A java Runtime Environment (J...
10 comments:

Private in Java: Why should you always keep fields and methods private? Example

›
Making members private in Java is one of best coding practice . Private members (both fields and methods) are only accessible inside th...
13 comments:
Friday, July 11, 2025

Introduction of How Android Works for Java Programmers

›
Android development is a popular  buzz in the Java programming world. It's Android, which keeps Java at the forefront of the last cou...
11 comments:

10 Essential UTF-8 and UTF-16 Character Encoding Concepts Every Programmer Should Learn

›
Hello guys, if you want to learn about character encoding , particularly UTF-18 and UTF-16 , and looking for a good resource then you have c...

Top 5 Blogs Java EE developers should follow

›
One reason for Java's great success as a programming language is that it has dominated the Enterprise space. Earlier J2EE used to be th...
7 comments:

5 Entertaining Posts from StackOverFlow - Must Read

›
StackOverFlow is great place to look for help, learn and participate, but it's also a great place to taste some real entertainment, con...
1 comment:
Wednesday, July 9, 2025

5 Things Programmers Can Buy in Amazon Prime Day 2025 [Best Deals]

›
Hello guys, many of my friends and colleagues used to wait until November to buy books, gadgets, and other computer items to get the huge di...

Tomcat – java.lang.OutOfMemoryError: PermGen space Cause and Solution

›
Tomcat web serve r often suffers from java.lang.OutOfMemoryError: PermGen space whenever you deploy and un-deploy your web application a ...
19 comments:

How to fix java.lang.classcastexception cannot be cast to in Java - cause and solution

›
As name suggests ClassCastException in Java comes when we try to type cast an object and object is not of the type we are trying to cast ...
10 comments:
›
Home
View web version

Contributors

  • SimpleJava
  • javin paul
Powered by Blogger.