Posts

Showing posts from 2013

How to search Google efficiently?

Image
How to search Google efficiently? Tricks for efficient Google search: Every 9 out of 10 people  use Google to Search the content they wish, and according to a recent survey 80-90% of people face unsuccessful searches. Today the post is on  How to Search Google more efficiently , forming a good  Google  query and you end up getting the exact and relevant  search results .Here i am sharing some extremely helpful  goggling skills  with my readers. Have you ever imagined how pleasurable it would be if you get exactly what you were looking for??? the techniques mentioned below will add value to your query. Using particular  operators  along with the search terms in a specific syntax or format will provide you with accurate and efficient content in no time. 1)       Use Quotes: Usually, when you type the search term without quotes then Google will look for the pages containing any of the word in the search term. Say for example, if i type “anthem of India” wi

Top 30 Eclipse Keyboard Shortcuts for Java Programmer...!

Eclipse Keyboard Shortcuts 1)        Ctrl + T  for finding class even from jar This keyboard shortcut in Eclipse is my most used and favorite shortcut. While working with high speed  trading system  which has complex code I often need to find classes with just blink of eye and this eclipse keyboard shortcut is just made for that. No matter whether you have class in your application or inside any JAR, this shortcut will find it. 2)        Ctrl + R  for finding any resource (file) including config xml files This is similar to above  Eclipse shortcut  with only difference that it can find out not only Java files but any files including xml, configs and many others, but this eclipse shortcut only finds files from your workspace and doesn’t dig at jar level. 3)        Ctrl + 1  for  quick fix This is another beautiful Eclipse shortcut which can fix up any error for you in Eclipse. Whether it’s missing declaration, missing semi colon or any import related error this e

What is final in Java? Final variable , Method and Class Examples:

Image
Final in java  is very important keyword and can be applied to class, method, and variables in Java. In this java final tutorial we will see  what is final keyword in Java ,  what does  it mean by making final variable , final method and final class in java and  what are primary benefits of using final keywords in Java  and finally some examples of final in Java. Final is often used along with  static keyword in Java  to make static final constant and you will see how final in Java can increase  performance  of Java application. What is final keyword in Java? Final is a keyword  or reserved word in java and can be applied to member variables, methods, class and local variables in Java. Once you make a reference final you are not allowed to change that reference and compiler will verify this and raise  compilation error  if you try to re-initialized  final variables in java . What is final variable in Java? Any variable either member variable or local variable (declared in

Oracle Date How to Add Day , Hour, Minute, Second to a Date Value:-

1)Oracle add Days 2)Oracle add Hour 3)Oracle add Minute 4)Oracle add second -- # Add a day select  to_char(sysdate,'dd-mm-yyyy hh24:mi:ss') "Todays-date" , to_char(sysdate  +1 ,'dd-mm-yyyy hh24:mi:ss') One_day  from dual ; Todays-date         ONE_DAY ------------------- ------------------- 05-01-2012 12:55:52 06-01-2012 12:55:52 -- # Add an hour select  to_char(sysdate,'dd-mm-yyyy hh24:mi:ss')  "Todays-date" , to_char(sysdate  +1/24 ,'dd-mm-yyyy hh24:mi:ss') One_hour from dual ; Todays-date         ONE_HOUR ------------------- ------------------- 05-01-2012 12:56:06 05-01-2012 13:56:06 -- # Add an Minute select  to_char(sysdate,'dd-mm-yyyy hh24:mi:ss') "Todays-date" , to_char(sysdate  +1/(24*60) ,'dd-mm-yyyy hh24:mi:ss') One_minute from dual ; Todays-date         ONE_MINUTE ------------------- ------------------- 05-01-2012 12:56:18 05-01-2012 12:57:18 -- # Add Second select  to_char(sysdate,'dd-mm-yyyy

String literal pool & Creating the String object Using new()

What is String literal pool? How to create a String There are two ways to create a String object in Java: Using the  new  operator. For example,  String str = new String("Hello"); . Using a  string literal  or  constant expression) . For example, String str="Hello";  (string literal) or String str="Hel" + "lo";  (string constant expression). What is difference between these String's creations? In Java, the  equals  method can be considered to perform a deep comparison of the value of an object, whereas the  ==  operator performs a shallow comparison. The  equals  method compares the content of two objects rather than two objects' references. The  ==  operator with reference types (i.e., Objects) evaluates as  true  if the references are identical - point to the same object. With value types (i.e., primitives) it evaluates as  true  if the value is identical. The  equals  method is to return true  if two objects have identical