Java

Java is a set of computer software and specifications developed by Sun Microsystems, which was later acquired by the Oracle Corporation, that provides a system for developing application software and deploying it in a cross-platform computing environment. Java is used in a wide variety of computing platforms from embedded devices and mobile phones to enterprise servers and supercomputers.

Spring Logo

Spring Framework

The Spring Framework provides a comprehensive programming and configuration model for modern Java-based enterprise applications - on any kind of deployment platform. A key element of Spring is infrastructural support at the application level: Spring focuses on the "plumbing" of enterprise applications so that teams can focus on application-level business logic, without unnecessary ties to specific deployment environments.

Hibernate Logo

Hibernate Framework

Hibernate ORM is an object-relational mapping framework for the Java language. It provides a framework for mapping an object-oriented domain model to a relational database.

Showing posts with label Others. Show all posts
Showing posts with label Others. Show all posts

Friday, February 14, 2014

Formatting source code on Blogger


The following are the few sites to format a source code on blogger.
  1. http://hilite.me/
  2. http://formatmysourcecode.blogspot.in/
  3. http://markup.su/highlighter/

Thursday, March 28, 2013

Setting the Classpath in Intellij IDEA

Setting the Classpath in Intellij IDEA:
Way1 :
  1. Open Project Structure (either Ctrl+Alt+Shift+S or File > Project Structure)
  2. Select "Modules" on the far left under Project Settings
  3. Select the module in question in the middle pane
  4. Arrange the order of the dependencies lists. One of the dependencies will be <Module Source> Which ever is listed first will be the one IDEA will give preference to. So if you want the local instance of Foo to be used, make sure <Module Source> is above the dependency.
screenshot.png
Way2:
  1. Right click on any directory in your IntelliJ project, select "Mark Directory As...", and choose "Source Root". 
  2. That director folder will change color from yellow to blue; IntelliJ considers all those directories to be in your CLASSPATH.

Friday, October 19, 2012

Eclipse IDE Tutorial

Please find the following site(s) it is very useful for beginners and experienced people.

  • http://www.vogella.com/tutorials/Eclipse/article.html
  • https://www.eclipse.org/
  • http://www.tutorialspoint.com/eclipse/

Friday, September 14, 2012

Difficult Questions And Intelligent Answers for Interview

Difficult Questions and Intelligent Answers for Interview: 

1. How can you drop a raw egg onto a concrete floor without cracking it?
Ans. Concrete floors are very hard to crack! (UPSC Topper)

2. If it took eight men ten hours to build a wall, how long would it take four men to build it?
Ans. No time at all it is already built. (UPSC 23 Rank Opted for IFS)

3. If you had three apples and four oranges in one hand and four apples and three oranges in the other hand, what would you have?
Ans. Very large hands..(Good one) (UPSC 11 Rank Opted for IPS)

4. How can you lift an elephant with one hand?
Ans. It is not a problem, since you will never find! an elephant with one hand. (UPSC Rank 14 Opted for IES)

5. How can a man go eight days without sleep?
Ans. No Probs, He sleeps at night. (UPSC IAS Rank 98)

6. If you throw a red stone into the blue sea what it will become?
Ans. It will Wet or Sink as simple as that. (UPSC IAS Rank 2)

7. What looks like half apple?
Ans. The other half. (UPSC - IAS Topper)

8. What can you never eat for breakfast?
Ans. Dinner.

9. What happened when wheel was invented?
Ans. It caused a revolution.

10. Bay of Bengal is in which state?
Ans. Liquid (UPSC 33Rank)

11. How many buckets of water do Pacific Ocean contains?
Ans. It depends on the size of the bucket. (CA Institute Campus Interview Placement)

12. Interviewer said 'I shall either ask you ten easy questions or one really difficult question. Think well before you make up your mind!' The boy thought for a while and said, 'my choice is one really difficult question. ''Well, good luck to you, you have made your own choice! Now tell me this. 'What comes first, Day or Night?'
Ans. The boy was jolted into reality as his admission depends on his answer, but he thought for a while and said, 'It's the DAY sir!'
'How' the interviewer asked,
'Sorry sir, you promised me that you will not ask me a SECOND difficult question!'
He was selected for IIM!

Thursday, September 13, 2012

JAVA IDE's

Best JAVA IDE :

Integrated Development Environments (IDE) provide benefits to programmers that plain text editors cannot match. IDEs can parse source code as it is typed, giving it a syntactic understanding of the code. This allows advanced features like code generators, auto-completion, refactoring, and debuggers. Here are the best-of-breed Java IDEs.

1) Eclipse :

Price: Free
License: Open Source (CPL)
Summary: Eclipse is a free IDE that has taken the Java industry by storm. Built on a plugin architecture, Eclipse is highly extensible and customizable. Third-party vendors have embraced Eclipse and are increasingly providing Eclipse integration. Eclipse is built on its own SWT GUI library. Eclipse excels at refactoring, J2EE support, and plugin support. The only current weakness of Eclipse is its lack of a Swing or SWT GUI designer.
The eclipse platform provides tool developers with ultimate flexibility and control over their software technology.
Likes:
  • IDE looks amazing, across all systems, and it is quite responsive...great interface overall!
  • anti-aliased text everywhere, even in UI!
  • ability to format to your line wrapping width.
  • refactoring support ascends from heaven!
  • easy to share code between projects
  • ant integration very well done, ant launcher makes managing project tree very easy.
  • content assist is used whereever possible, not just in editor (wizards scrrens).
  • amazing control over the formatting of java source code, which can be saved as a profile.
  • pasting code formats code automatically!
  • editor tabs can be moved around with drag-and-drop.
  • can double-click editor tabs to expand to full workspace view.
  • has both docked views and fast views (most editors only offer one or the other).
  • very powerful control over how the java compiler handles warnings and errors.
  • very small project-specific footprint on directory tree (.project, .classpath).
  • package view has very nice filtering abilities, for what to show/not show (can now filter closed packages, selected working set).
  • code assist in ant resolves location properties and displayes the path in a tooltip!!
  • code assist shows documentation for each option, especially helpful for ant tasks.
  • awesome integrated diff engine and viewer for comparing files and refactoring changes.
  • can rearrange the order of properties and methods in the "outline" view.
  • context aware templates, tab/shift-tab to jump to different insertion points (markers).
Dislikes :
  • editor does not have a split file view!!
  • lacks general syntax highlighting out of the box (property file highlighting added in 3.1).
  • no "soft" line wrapping (only hard wrapping by issuing the format command).
  • doesn't come with native servlet/J2EE aware plugins (you have to configure a plugin, such as lomboz, webtools or myeclipse).
  • must manually create ant scripts, though the code assist support is very well done.
  • cannot create new buffer without creating linked file (annoyance, fixed in 3.1).
  • double clicking on file in package explorer does not close editor if it is currently open (JEdit feature).
2) Netbeans 3 (Sun Microsystems):
Price: Free
License: Open Source (CPL)
Summary: Netbeans is a free IDE backed by Sun Microsystems. It is the main competitor of Eclipse. Netbeans is built on a plugin architecture, and it has respectable third-party vendor support. The main advantage of Netbeans over Eclipse is Netbean's excellent GUI designer. It includes syntax highlighting and language support for Java, JSP, XML/XHTML, visual design tools, code generators, ant and CVS support.
(Free) and derivatives like SunJavaStudio? (Commercial) and Compuware OptimalJ? (Commercial).
Likes:
  • very nice code completion engine, never seems too aggressive, very thorough in what it includes, esp jsp.
  • code formatting/reindent task (located in context menu), especially nice for XML/XHTML.
  • creating custom tag libraries was very easy, step by step process straightforward (once I knew where to look).
  • very nice integration with Tomcat, no setup required, direct pages testing, spawns browser, always updates correctly.
  • can specify default request parameters when testing a page.
  • view generated source code for jsp.
  • the whole Tomcat integration module is superb!.
  • nice jsp tag repository support in jsp editor, very easy to add tag libraries to jsp page.
  • HTTP monitor integration very nice, again, part of integration with servlet engine, A++.
  • can move around tabs, I love this (tabs also don't wrap to next line, big plus).
  • validate JSP is very helpful and quite informative...tells you exactly what is missing.
  • javadoc wizard could come in handy, definitely a cool feature, more than just a GUI.
  • method/field navigator as a select box is a nice idea on main UI, don't take up space.
  • can move around all views, group as tabs, etc...easy to customize placements, but doesn't get too complicated like with "workspaces" in eclipse.
  • block indenting/unindenting function, great for XML/XHTML (hardly need it with the code reformatting).
  • very responsive and quick UI.
  • anti-aliased text in editor.
  • very acceptable IDE layout.
  • can right-click file and "Save as template..." which is especially nice for JSP content pages
  • very nice database browser, manipulator, easy to setup.
Dislikes:
  • UI looks crappy (metal), icons suck.
  • no refactoring or refactoring templates (try/catch, rename field, etc...).
  • no JSTL-EL support in syntax highlighting/code completion.
  • cannot wrap arbitrary text in editor.
  • wierd issues with "mounting" core libraries, causes errors and features not to work correctly, such as code completion...the whole "mounting" thing is very strange.
  • new file wizards too minimial.
  • limited control over formatting of java source code (though the defaults won't kill you and it can reformat nicely).
  • Very difficult (for newbies impossible) to add a regular ol' jar file to a project. Every mechanism seems to work against you.
  • Cannot import sources from somewhere else into project, rather you can only mount them where they are...need a copy mechanism.

3) IntelliJ IDEA :

Price: $499
License: Proprietary
Summary : IntelliJ IDEA is a commercial IDE with a loyal following that swear by it. It has excellent J2EE and GUI support. It is extensible via plugins. Its standout feature is the outstanding refactoring support.
It provides a robust combination of enhanced development tools, including: refactoring, J2EE support, Ant, JUnit, and CVS integration. Packaged with an intelligent Java editor, coding assistance and advanced code automation tools, IDEA enables Java programmers to boost their productivity while reducing routine time consuming tasks.
Likes :
  • Superb block editing, the best I have seen, has a distinct "column mode" setting which can be toggled in the context menu.
  • refactoring works flawlessly, has a nice preview, doesn't hose project.
  • Excellent keymapping support, going so far as to support key sequences ala emacs.
  • Interesting support for anywhere editing (automatically places spaces to fill).
  • Once tld is accessible (in classpath), instant tag support in JSP, no need to "assign" it to the IDE.
  • once setup, tomcat integrate is very streamlined, offers a "dump threads" utility for a sudo-reload, JSPs recompile after save.
  • project view is very simple, easy to understand...arranging projects is user-friendly and intuitive.
  • best looking theme next to Eclipse (even on Linux), limited only by java and fonts.
  • anti-aliased text in editor, also in docked tabs.
  • Struts Console plugin offers great Struts config and tld file support.
  • very nice integrated class browser whenever a class is required for input.
  • keymap hints in UI menus update to reflect current keymappings, not just the default set.
  • ant view allows for filtering of targets using a pick list (great for huge build files).
Dislikes :
  • deployment server must be setup separately.
  • No "X" button on editor tabs to close a file, must right click or use keymapping.

4) JBuilder X (Borland) :

Price: $499 (JBuilder 2007)
License: Proprietary
Summary: Jbuilder has long been the top commercial Java IDE. It is an excellent IDE, but it is not built to be open and extensible by third-part vendors. They have a free version but moving up from the free version gets expensive. JBuilder is a complete Java IDE for EJB, Web and Web Services, offering integration with application servers (namely BEA Weblogic), a Struts designer, unit testing, refactoring and support for several source control systems.
Likes :
  • Code template expansions are very helpful, prevents redundant typing (expand with CTRL-J).
  • Can view images in separate tab.
  • Archive builder offers a nice wizard replacement for many ant tasks.
  • Decent built-in database plugin for managing and querying a SQL database.
  • Built-in makefile task for build, clean, rebuild, no need to create ant script.
  • sound effects are a nice touch.
  • JSTL-EL syntax highlighting support.
  • antialiased text editor.
  • can make edit window full screen by double clicking tab.
Dislikes :
  • EXPENSIVE!
  • options in hard to find places.
  • cannot reformat non-java code, such as XML/XHTML.
  • renaming a project is a recipie for disaster, everything gets screwed (most crucially the paths)!
  • recompiling with an active "web run" will sometimes redeploy, sometimes won't redeploy; it's completely random, so you constantly have to restart the weblogic server.
  • refactoring is crap, even renaming a field screws up the code; possible to hose your project in untold ways by renaming things.
  • adding fields to class doesn't allow specification of access (private|protected|public).
  • cannot delete a directory or a package in a project.
  • jsp validation is not very helpful, just tells you on what line an error occurs.
  • wizard for "implement interface" but no wizard for "extend class".
  • when creating new files, you get a different create screen depending on where you selected the option, CONFUSING!!.
  • no syntax highlighting for java properties files, and no editor.
  • many times the error insight will detect an error, but it won't tell you what the error is until you try to compile.
  • multiple projects can not be viewed at once, must repeatedly toggle which project is displayed.

5) JDeveloper (Oracle) :

Price: Free {$218.90 per named user plus per year For Support}
License: Proprietary
Summary: Oracle JDeveloper is an integrated development environment with end-to-end support for modeling, developing, debugging, optimizing, and deploying Java applications and Web services. Oracle JDeveloper 10g introduces a new approach to J2EE development with features that enable visual and declarative development. The innovative OAF simplifies J2EE development.
Likes:
  • very nice integration with embedded OC4J container, very easy to execute test page, updates reflected immediately.
  • browser launcher is configurable (good for tabbed browsing and multiple launches).
  • JSP engine and code editor is the best I have seen, super easy to work with, delightful!
  • code insight for EL expressions!
  • auto insert of taglib uri directive when inserting a taglib in JSP page source.
  • several ways to do block indent formatting (highlight block and tab/shift-tab will indent/unindent).
  • very nice forms for creating all aspects of classes.
  • very nice forms for creating classes from *.tld files and keeping the two in-sync/connected.
  • adding taglibs to a project is somewhat intuitive...if you know what to press, it works just fine.
  • message windows informative on build.
  • deployment descriptors have previews so you know what they are going to encapsulate.
  • nice refactoring support.
  • code template support.
  • the timeout on most "auto" aspects can be configured to happen after a time interval, configured with a slider bar...nice concept!
  • Nice import mechanism for sources, very comprehensive wizard
Dislikes:
  • old stuff tends to hang around, constant have issues with "artifacts" of a project, no "make clean".
  • files can get really messed up if you don't remove them properly from disk...learn the order of doing things and stick with it.
  • no clear way to remove a class altogether, if created by accident (I found it, located in file, NOT intuitive).
  • no way to rename a *.tld file once it is created with wizard.
    somewhat slow, not quite as quick as netbeans.
  • several places where a class or interface is required that you have to do manual typing, no integrated class browser.
  • look and feel is descent, some descent icons.
  • cannot maximize a tab to take up the whole window.
  • no way to make textarea anti-aliased text.
  • doesn't remember last openned directory...argh!!

6) SlickEdit :

Price: $284 for a named user license
License: Proprietary
Summary : SlickEdit is an old greybeard in the IDE space. This powerful commercial IDE is a favorite of developers who must switch between several languages. It is a full-featured IDE in dozens of languages, including Java, C++, C#, and HTML. SlickEdit comes as a standalone application or as a plugin for Eclipse.
Likes:
  • SlickEdit is easy to install and configure.
  • large number of supported platforms.
  • As a coding editor SlickEdit has the usual features one would expect from any professional environment - code completion, syntax highlighting and so on.
  • Best feature of SlickEdit is the ability to customise it, to shape the application to fit your own way of working.
  • When creating a new Java class the editor automatically creates the required directories for the specified package—you don't have to specify the package and class names. This feature adds to SlickEdit's productivity.
  • SlickEdit comes with a powerful debugger that you can use to run Java applications in debug mode and step through the code.
  • This tool also provides a very good interface to write and execute JUnit test scripts from within the editor which will be a great help for those who follow TDD-based application development.
  • One cool thing about SlickEdit is that it provides several code templates you can use to add new features to your workspace. You can also add your own templates (much like custom plug-ins in Eclipse).
Dislike:
  • Customizability however, comes with the downside that the application is at first use quite difficult to get into and use.
  • It would be nice if the tool had an option to auto-generate getter and setter methods for the attributes defined in a Java class.

7) jEdit :

Price: open source
License: Proprietary
Summary : jEdit is a free, mature, and well-designed programmer's code editor that is written in Java and is highly customizable through plugins and options. This editor is sufficiently powerful to be considered a professional strength IDE.
Like:
  • it's a fine example of a Java desktop tool that looks good, is packed full of useful functionality and has snappy response times.
  • Dozens of macros and plug-ins available.
Dislike:
  • In terms of features not comparable to eclipse or visual studio.

8) JCreater :

Price: Free
License: Proprietary
IDE from Xinox. JCreator has two editions: JCreator Pro (free 30 day trial), JCreator Standard (completely free). Note also that unlike many other Java IDEs, this one is not coded in Java but is written in C++ and optimised for the Windows platform.
Like:
  • a small download compared to some of the better known Java IDEs.
  • There is some automation in terms of wizards for new workspaces, projects, classes and interfaces.
  • The environment features a some level of configurability, with tool bars, key bindings and links to external tools all available.
  • If you develop on Windows and are looking for something that's fast and light-weight then this is one tool that deserves serious consideration.
Dislike :
  • JCreator runs under Windows, there's no Linux or Unix version.
  • Lack of an effective macro or plug-in architecture means that extending with new functionality is not an option.
  • JCreator clearly doesn't have the full range of functionality that the big platforms - Eclipse and NetBeans - have to offer.

9) IBM WebSphere Studio Site Developer for Java :

Java IDE for Windows and Linux. Expensive but very powerful IDE for servlets, JSP, and other J2EE development. Not limited to use with the WebSphere app server.

10) WebLogic Workshop:

BEA WebLogic Workshop is a very powerful IDE for developing applications on the BEA Web Logic Server. Weblogic workshop runs on Windows, Linux and Solaris and requires a Weblogic Servier. We can download a free version or a professional version.

Thursday, December 15, 2011

Sample Resumes for Freshers and Experience


RESUMES


FRESHERS RESUME FORMATS:

  1. FORMAT 1    
  2. FORMAT 2    
  3. FORMAT 3    
  4. FORMAT 4    
  5. FORMAT 5    
  6. FORMAT 6    
  7. FORMAT 7    
  8. FORMAT 8    
EXPERIENCE RESUME FORMATS:
  1. FORMAT 1     One yr Exp.
  2. FORMAT 2     Two Yrs Exp.
  3. FORMAT 3     Three Yrs Exp

Friday, December 2, 2011

Top Ten Browsers


Top 10 Browsers

Nov 2, 2010 by Ranga Reddy
If you are surfing Internet and want to use feature rich browser then you have so many options to choose from.Choosing the best for great experience, you will have to know about all browsers.To help you choose best, today we have come up with the list of top 10 browsers with their features.
1. Mozilla Firefox :
This browser is perhaps the world’s favorite browser. The top multinationals have decided to keep it as their default. It is open source browser with the worldwide support from a community of developers and testers. The main features of this browser are:
  • Private Browsing
  • Instant Web Site ID
  • Built-in Spell Checker
  • Customization with around a million themes available for free from its official website
  • Ships with almost all linux distributions

2. Chrome :
This is managed by Google. It is fastest of all browsers that are available today. It main features are:
  • Flexible Tabs which can be placed anywhere
  • In Built Download Manager
  • Private Browsing
  • Online Task Manager
  • More Secure
  • Webshots of last websites visited

3. Internet Explorer :
This is perhaps our first web browser that we might have experienced. It is maintained and developed by Microsoft. The main features of this are:
  • Compatibility with older versions so that the visibility is not an issue
  • Grouped Tabs
  • Private Browsing
  • Grouped Tabs
  • Web Slices

4. Opera :
This browser is claimed to be the fastest on the planet. This was developed by the telecom company Telenor. The main features of this browser is:
  • Visual Tabs
  • A number of Addons are available on its official website
  • Faster internet surfing even on slow connections
  • Content Blocker for young and sensitive audience
  • Download Manger with Torrent support

5. Safari :
This is developed by Apple for its macintosh Operating System. Some of the features are:
  • Private Browsing
  • Bookmark Integration with Address Book
  • Built in password management feature which is only available in Mac only
  • Mail integration
  • Inline PDF Viewer
  • Tabbed browsing

6. Maxthon :
It is a freeware software that is developed by some firm in China. It was developed mainly for Microsoft Windows. Its main features are:
  • Link Validator
  • Tabbed Surfing
  • Adobe Flash and ActiveX object support
  • Programmable mouse gestures and mouse chording.
  • RSS Reader

7. Flock :
It is a social networking web browser that is built for Facebook and Twitter. It is an open source project with many contributors all around the world. Its main features are
  • Integration of all the social networking account into this single browser
  • Support for the sharing for videos, photos and links
  • Feed Reader to accommodate all the types of feeds
  • Support for third party Firefox extensions

8. Avant :
It is an extremely light and fast browser that is developed by Avant Force. Its main features are:
  • In built RSS Reader
  • Private Browsing
  • Flash Animator Filter
  • AD/Pop-up Blocker

9. Deepnet Explorer :
It is the only browser with a phishing alarm along P2P connectivity. The other main features are:
  • In built RSS Reader
  • Private Browsing
  • Automatic Form Filler
  • File Sharing Support
  • Mouse Gestures

10. Phase Out :
It is a freeware that is used for the ultimate space exploration. The various features are:
  • Pop-Up Blocker and Clean-Up Tools
  • Integrated Advanced Search Tool Bar
  • Tabbed Web Windows
  • Automatic search function on page not found error (404)