javabugger.blogspot.com
All About Java Technology: February 2013
http://javabugger.blogspot.com/2013_02_01_archive.html
All About Java Technology. Java technology news, interviews , updates , trends, frameworks. Wednesday, February 20, 2013. What are immutable objects? What are their Advantages? Design a immutable object with Date object as a member attribute. An object is considered immutable if its state cannot change after it is constructed. 1 Simple and Reliable Code. 2 Useful in concurrent Applications since they cannot change state, they cannot be corrupted by thread interference or present in inconsistent state.
javabugger.blogspot.com
All About Java Technology: July 2014
http://javabugger.blogspot.com/2014_07_01_archive.html
All About Java Technology. Java technology news, interviews , updates , trends, frameworks. Wednesday, July 16, 2014. LinkedList and ArrayList are two different implementations of the List interface of Java Collections Framework. LinkedList is implemented based on doubly-linked list where as ArrayList implements it with a dynamically resizing array. These implementations differ in algorithmic runtime as shown below. Adding new elements :. Remove(Element e) - It is same as removing at an index. Accessing ...
javabugger.blogspot.com
All About Java Technology: October 2008
http://javabugger.blogspot.com/2008_10_01_archive.html
All About Java Technology. Java technology news, interviews , updates , trends, frameworks. Monday, October 27, 2008. Check memory usage by your java program. It is always helpul for us to know how much memory is our program consuming for its execution. It helps us to improve our program performance and optimize programs. In Java, we have ways to do this programatically. If you want to know programatically, you can use Runtime.totalMemory(). These are instance methods - use Runtime.getRuntime(). So, it i...
javabugger.blogspot.com
All About Java Technology: July 2009
http://javabugger.blogspot.com/2009_07_01_archive.html
All About Java Technology. Java technology news, interviews , updates , trends, frameworks. Wednesday, July 8, 2009. Eliminating unnecessary log4j setup output. When using log4j for logging in your application, you may see a lot of log messages added by log4j when startup of the application which are not required. These will add to noise in your log files. They will look something like. Log4j: Retreiving an instance of org.apache.log4j.Logger. Log4j: Setting [Myclass] additivity to [false]. Some example ...
javabugger.blogspot.com
All About Java Technology: May 2011
http://javabugger.blogspot.com/2011_05_01_archive.html
All About Java Technology. Java technology news, interviews , updates , trends, frameworks. Sunday, May 29, 2011. Java interview questions (1). 1 What is the purpose of serialization? Answer: Serialization is the conversion of an object to a series of bytes, so that the object can be easily saved to persistent storage or streamed across a communication link. The byte stream can then be deserialised – converted into a replica of the original object. 2 What is the difference between JDK and JRE? Answer: In...
javabugger.blogspot.com
All About Java Technology: May 2010
http://javabugger.blogspot.com/2010_05_01_archive.html
All About Java Technology. Java technology news, interviews , updates , trends, frameworks. Wednesday, May 19, 2010. Looking for a file in a Folder. The java.io.FileFilter interface can be used to filter an array of files obtained when looking inside a directory. An example implementation of FileFilter. Class JarFileFilter implements FileFilter. Public boolean accept(File file). If(file.getName().toLowerCase().endsWith("jar"). The above implementation class narrows down the list of files to only jar files.
javabugger.blogspot.com
All About Java Technology: June 2010
http://javabugger.blogspot.com/2010_06_01_archive.html
All About Java Technology. Java technology news, interviews , updates , trends, frameworks. Friday, June 18, 2010. These additional steps make it harder to create user-friendly applications in Java. Not only does the end user have to type all of these elements at the command-line, which many end users would rather avoid, but chances are good that he or she will somehow fat-finger it and get an obscure error back. Listing 2. Show me the entrypoint! Main-Class: com.tedneward.jars.Hello. Simple template....
javabugger.blogspot.com
All About Java Technology: Unit Testing - Test Private methods using JUnit
http://javabugger.blogspot.com/2014/07/unit-testing-test-private-methods-using.html
All About Java Technology. Java technology news, interviews , updates , trends, frameworks. Saturday, July 12, 2014. Unit Testing - Test Private methods using JUnit. Unit testing is a very critical and crucial part of any development activity. Simple but sound unit test cases can save many hours of debugging time for a developer which indeed improves the code quality. For a Java developer, Junit is one of the old and preferred way of fortifying his code. Object[] myMethodArgsClasses = new Object[].
javabugger.blogspot.com
All About Java Technology: July 2011
http://javabugger.blogspot.com/2011_07_01_archive.html
All About Java Technology. Java technology news, interviews , updates , trends, frameworks. Saturday, July 2, 2011. What is the basic CORBA Architecture? Can CORBA application be multi-threaded? Do different CORBA implementations perform at significantly different levels? Does CORBA supports asynchronous communication? Are there different threading models that can be used within CORBA servers? What is the reason to implement a CORBA application with multi-threading? A single multi-threaded server process...