Monthly Archives: January 2013
Q) Explain about lastIndexOf(int ch) method of String class with an examples?
Q) Explain about lastIndexOf(int ch) method of String class with an examples?
public int lastIndexOf(int ch)
public class StringDemo20{
public static void main(String[] args){
String s1 = new String(“www.chennarapu.wordpress.com”)
System.out.println(s1.lastIndexOf(‘n’));
System.out.println(s1.lastIndexOf(‘c’));
}
}
Output :
D:\NAG\STRINGS>javac StringDemo20.java
D:\NAG\STRINGS>java StringDemo20
8
25
Q) Explain about indexOf(int ch, int fromIndex) method of String class with an examples?
Q) Explain about indexOf(int ch,
int fromIndex) method of String class with an examples?
public int indexOf(int ch,
int fromIndex)
public class StringDemo19{
public static void main(String[] args){
String s1 = new String(“www.chennarapu.wordpress.com”);
System.out.println(s1.indexOf(‘n’,1));
System.out.println(s1.indexOf(‘c’,3));
}
}
Output :
D:\NAG\STRINGS>javac StringDemo19.java
D:\NAG\STRINGS>java StringDemo19
7
4
Q) Explain about endsWith(String suffix) method of String class with an examples?
Q) Explain about endsWith(String suffix) method of String class with an examples?
public boolean endsWith(String suffix)
Tests if this string ends with the specified suffix.
public class StringDemo17 {
public static void main(String[] args) {
String s1 = new String(“www.chennarapu.wordpress.com”);
System.out.println(s1.endsWith(“m”));
System.out.println(s1.endsWith(“w”));
}
}
Output :
D:\NAG\STRINGS>javac StringDemo17.java
D:\NAG\STRINGS>java StringDemo17
true
false
Q) Explain about indexOf(int ch) method of String class with an examples?
Q) Explain about indexOf(int ch) method of String class with an examples?
-
public int indexOf(int ch)
-
returns first occurrence index or , -1 if the character does not occur.
public class StringDemo18{
public static void main(String[] args){
String s1 = new String(“www.chennarapu.wordpress.com”);
System.out.println(s1.indexOf(‘c’));
System.out.println(s1.indexOf(‘i’));
}
}
Output :
D:\NAG\STRINGS>javac StringDemo18.java
D:\NAG\STRINGS>java StringDemo18
4
-1
ShortCuts of MyEclipse?
Edit | Next Sibling | Ctrl+Shift+Down | Editing in Structured Text Editors | ||
Run/Debug | Debug Last Launched | F11 | In Windows | ||
Text Editing | Next Column | Ctrl+F | Editing Text | ||
Source | Add Import | Ctrl+Shift+M | Editing Java Source | ||
Edit | Select All | Ctrl+A | In Dialogs and Windows | ||
Edit | Run Query command | Ctrl+F9 | Editing HQL | ||
Views | Show View (View: Synchronize) | Alt+Shift+Q, Y | In Windows | ||
Web Page Editor Layout | Graphical Designer | Ctrl+Shift+F11 | Using Web Page Editor | ||
Edit | Rename | Alt+Shift+R | Editing JSP Source | ||
Text Editing | Page Up | Esc, V | Editing Text | ||
Edit | Undo | Ctrl+Shift+- | In Windows | ||
Edit | Content Assist | Ctrl+Space | In Dialogs and Windows | ||
Edit | Redo | F10 | In Windows | ||
Run/Debug | Resume | F8 | Debugging | ||
Run/Debug | Close Rendering | Ctrl+W | In Memory View | ||
Run/Debug | Force Return | Alt+Shift+F | In Windows | ||
Navigate | Organize imports | Ctrl+Shift+C | Acceleo Editor | ||
Text Editing | Expand All | Ctrl+Numpad_Multiply | Editing Text | ||
Run/Debug | Run Eclipse Application | Alt+Shift+X, E | In Windows | ||
File | Save All | Ctrl+Shift+S | In Windows | ||
Run/Debug | Toggle Breakpoint | Ctrl+Shift+B | In Windows | ||
File | Save All | Ctrl+X, S | In Windows | ||
Run/Debug | Step Over | F6 | Debugging | ||
Navigate | Open Plug-in Artifact | Ctrl+Shift+A | In Windows | ||
Search | References in Workspace | Ctrl+Shift+G | In Windows | ||
Text Editing | Next Attribute | Ctrl+Alt+Right | TapestryEditorScope | ||
Navigate | Open Type Hierarchy | F4 | Editing Script Source | ||
Database Tools | Goto Matching Token | Ctrl+Shift+P | Editing SQL | ||
Run/Debug | Debug Eclipse Application | Alt+Shift+D, E | In Windows | ||
Edit | Paste | Shift+Insert | In Dialogs and Windows | ||
Text Editing | Delete Next | Ctrl+D | Editing Text | ||
Script Source | Toggle Comment | Ctrl+Shift+C | Editing Script Source | ||
Navigate | Open Method | Ctrl+Shift+M | In Windows | ||
Edit | Select Previous Element | Alt+Shift+Left | Editing Java Source | ||
Source | Remove Block Comment | Ctrl+Shift+\ | Editing Java Source | ||
Navigate | Open Type in Hierarchy | Ctrl+Shift+H | In Windows | ||
Source | Indent Line | Ctrl+I | Editing Java Source | ||
Text Editing | Jump to Java | Alt+F8 | TapestryEditorScope | ||
Navigate | Open Resource | Ctrl+X, Ctrl+F | In Windows | ||
Run/Debug | Terminate | Ctrl+F2 | Debugging | ||
Edit | Undo | Ctrl+Z | In Dialogs and Windows | ||
Run/Debug | Run on Server | Alt+Shift+X, R | In Windows | ||
Views | Show View (View: History) | Alt+Shift+Q, Z | In Windows | ||
Edit | Restore Last Selection | Alt+Shift+Down | Editing in Structured Text Editors | ||
Navigate | Previous Sub-Tab | Alt+PageUp | In Dialogs and Windows | ||
Database Tools | Execute Selected Text | Alt+X | Editing SQL | ||
Run/Debug | Debug JUnit Plug-in Test | Alt+Shift+D, P | In Windows | ||
Edit | Find and Replace | Esc, R | In Windows | ||
Text Editing | Previous Word | Esc, B | Editing Text | ||
Source | Format | Ctrl+Shift+F | Editing Java Source | ||
Window | Maximize Active View or Editor | Ctrl+M | In Windows | ||
Edit | Find Previous | Ctrl+Shift+K | Editing Text | ||
Source | Toggle Comment | Ctrl+Shift+C | Editing Java Source | ||
Text Editing | Set Mark | Ctrl+2 | Editing Text | ||
Run/Debug | Inspect | Ctrl+Shift+I | In Dialogs and Windows | ||
Edit | Format Active Elements | Ctrl+I | Editing in Structured Text Editors | ||
Edit | Move | Alt+Shift+V | Editing JSP Source | ||
ASA 9.x table schema editor | Paste | Alt+V | In Windows | ||
Script Source | Toggle Comment | Ctrl+/ | Editing Script Source | ||
Text Editing | Delete Previous Word | Ctrl+Backspace | Editing Text | ||
Text Editing | Duplicate Lines | Ctrl+Alt+Up | Editing Text | ||
Text Editing | Copy Lines | Ctrl+Alt+Down | Editing Text | ||
Source | Toggle Mark Occurrences | Alt+Shift+O | Editing Java Source | ||
Navigate | Matching Bracket | Ctrl+Shift+P | Editing in Structured Text Editors | ||
Window | Switch to Editor | Ctrl+Shift+E | In Windows | ||
Edit | Previous Sibling | Ctrl+Shift+Up | Editing in Structured Text Editors | ||
Text Editing | Text End | Ctrl+End | Editing Text | ||
Window | Show Key Assist | Ctrl+Shift+L | In Dialogs and Windows | ||
Edit | Restore Last Selection | Alt+Shift+Down | Editing Java Source | ||
Edit | Word Completion | Alt+/ | Editing Text | ||
Edit | Incremental Find Reverse | Ctrl+R | Editing Text | ||
Text Editing | Line End | Ctrl+E | Editing Text | ||
Window | Next Editor | Ctrl+F6 | In Windows | ||
Run/Debug | All Instances | Ctrl+Shift+N | In Windows | ||
Refactor – Java | Extract Method | Alt+Shift+M | In Windows | ||
Navigate | Next Page | Alt+F7 | In Windows | ||
Text Editing | Format | Ctrl+Shift+F | TapestryEditorScope | ||
Visual Page Editor | Jump | Ctrl+Shift+Tab | Visual Page Editor | ||
Text Editing | Insert Line Above Current Line | Ctrl+Shift+Enter | Editing Text | ||
Text Editing | Swap Mark | Ctrl+X, Ctrl+X | Editing Text | ||
Text Editing | Delete Previous Word | Alt+Backspace | Editing Text | ||
Navigate | Quick Outline | Ctrl+O | Editing Script Source | ||
Text Editing | Join Lines | Ctrl+Alt+J | Editing Text | ||
Refactor – Java | Move – Refactoring | Alt+Shift+V | In Windows | ||
Text Editing | Scroll Line Up | Alt+Z | Editing Text | ||
Edit | Delete From Model | Shift+Delete | In Windows | ||
File | Ctrl+P | In Windows | |||
Navigate | Open Type Hierarchy | F4 | In Windows | ||
Navigate | Go to Line | Ctrl+L | Editing Text | ||
Text Editing | Collapse | Ctrl+Numpad_Subtract | Editing Text | ||
Text Editing | Line Down | Ctrl+N | Editing Text | ||
Window | Show View Menu | Ctrl+F10 | In Dialogs and Windows | ||
Run/Debug | Add Memory Block | Ctrl+Alt+M | In Memory View | ||
Project | Build All | Ctrl+B | In Windows | ||
Run/Debug | Run to Line | Ctrl+R | Debugging | ||
Edit | Copy | Ctrl+Insert | In Dialogs and Windows | ||
File | New | Ctrl+N | In Windows | ||
Views | Show View (View: Search) | Alt+Shift+Q, S | In Windows | ||
Text Editing | Select Line End | Shift+End | Editing Text | ||
Text Editing | Insert Line Below Current Line | Shift+Enter | Editing Text | ||
Views | Show View (View: Problems) | Alt+Shift+Q, X | In Windows | ||
Navigate | Quick Outline | Ctrl+O | Editing Java Source | ||
Run/Debug | Run Java Application | Alt+Shift+X, J | In Windows | ||
Edit | Find and Replace | Alt+R | In Windows | ||
Navigate | Beans Quick Cross References | Alt+Shift+G | Editing Text | ||
File | Close | Ctrl+F4 | In Windows | ||
Text Editing | Text Start | Ctrl+X, [ | Editing Text | ||
Text Editing | Scroll Line Down | Ctrl+Down | Editing Text | ||
Text Editing | Text Start | Esc, Shift+< | Editing Text | ||
Text Editing | Previous Column | Ctrl+B | Editing Text | ||
Web Page Editor Layout | Vertical Layout | Ctrl+Shift+F9 | Using Web Page Editor | ||
Edit | Paste | Ctrl+V | In Dialogs and Windows | ||
Refactor – Java | Rename – Refactoring | Alt+Shift+R | In Windows | ||
Edit | Select Previous Element | Alt+Shift+Left | Editing in Structured Text Editors | ||
ASA 9.x table schema editor | Copy | Alt+C | In Windows | ||
Text Editing | Text Start | Alt+Shift+< | Editing Text | ||
Window | Quick Access | Ctrl+3 | In Windows | ||
Navigate | Beans Quick Outline | Ctrl+O | Editing in Structured Text Editors | ||
Edit | Redo | Ctrl+X, R | In Windows | ||
Edit | Find Next | Ctrl+K | Editing Text | ||
Edit | Toggle Block Selection | Alt+Shift+A | Editing Text | ||
View | Zoom Out | Ctrl+- | In Windows | ||
Edit | Delete | Delete | In Windows | ||
Navigate | Open Declaration | F3 | Editing Script Source | ||
Text Editing | Page Down | Ctrl+V | Editing Text | ||
Source | Add Javadoc Comment | Alt+Shift+J | In Windows | ||
File | Rename | F2 | In Windows | ||
Text Editing | Delete to End of Line | Ctrl+Shift+Delete | Editing Text | ||
Navigate | Open Call Hierarchy | Ctrl+Alt+H | Editing Script Source | ||
Text Editing | Cut to Beginning of Line | Alt+0, Ctrl+K | Editing Text | ||
Run/Debug | Step Into Selection | Ctrl+F5 | Debugging | ||
ASA 9.x table schema editor | Cut | Alt+X | In Windows | ||
Text Editing | Scroll Line Up | Esc, Z | Editing Text | ||
Source | Toggle Comment | Ctrl+Shift+C | Editing Properties Files | ||
Desktop commands | Capture | Ctrl+Alt+Insert | In Windows | ||
Source | Toggle Ant Mark Occurrences | Alt+Shift+O | Editing Ant Buildfiles | ||
Edit | Copy | Alt+W | In Dialogs and Windows | ||
Text Editing | Previous Attribute | Ctrl+Alt+Left | TapestryEditorScope | ||
Run/Debug | New Rendering | Ctrl+N | In Memory View | ||
Run/Debug | Execute | Ctrl+U | In Windows | ||
Navigate | Show JavaScript Quick Outline | Ctrl+O | Editing HTML Source | ||
Navigate | Quick Hierarchy | Ctrl+T | Editing Java Source | ||
Navigate | Go to Line | Ctrl+X, G | Editing Text | ||
Run/Debug | Debug Java Application | Alt+Shift+D, J | In Windows | ||
Views | Show View (View: Error Log) | Alt+Shift+Q, L | In Windows | ||
Window | Previous View | Ctrl+Shift+F7 | In Windows | ||
Search | Open Search Dialog | Ctrl+H | In Windows | ||
Edit | Paste | Ctrl+Y | In Dialogs and Windows | ||
Text Editing | Text End | Alt+> | Editing Text | ||
Run/Debug | Inspect | Ctrl+Shift+I | Debugging Script | ||
Window | Previous Perspective | Ctrl+Shift+F8 | In Windows | ||
Spy | Plug-in Spy | Alt+Shift+F1 | In Dialogs and Windows | ||
Edit | Open Selection | F3 | Editing in Structured Text Editors | ||
Navigate | Open Spring Bean | Alt+Shift+B | In Windows | ||
Script Source | Correct &Indentation | Ctrl+I | Editing Javascript Source | ||
Text Editing | Open Structure | Ctrl+F3 | TapestryEditorScope | ||
Text Editing | Page Up | Alt+V | Editing Text | ||
Text Editing | Jump to Template | Alt+F6 | Editing Java Source | ||
Navigate | Collapse All | Ctrl+Shift+Numpad_Divide | In Windows | ||
Run/Debug | EOF | Ctrl+Z | In I/O Console | ||
File | Save | Ctrl+X, Ctrl+S | In Windows | ||
Search | Show Occurrences in File Quick Menu | Ctrl+Shift+U | In Windows | ||
Navigate | Go to Next Member | Ctrl+Shift+Down | Editing Java Source | ||
Source | Add Block Comment | Ctrl+Shift+/ | Editing Java Source | ||
Edit | Redo | Ctrl+Y | In Dialogs and Windows | ||
Text Editing | Jump to Specification | Alt+F7 | Editing Java Source | ||
Script Source | Add Block Comment | Ctrl+Shift+/ | Editing Javascript Source | ||
Spy | Plug-in Spy | Alt+Shift+F2 | In Dialogs and Windows | ||
Edit | Cut | Ctrl+W | In Dialogs and Windows | ||
Text Editing | Delete Line | Ctrl+D | Editing Text | ||
Window | Next Perspective | Ctrl+F8 | In Windows | ||
Source | Toggle Comment | Ctrl+/ | Editing Java Source | ||
Navigate | Open type in hierarchy | Ctrl+Shift+H | Editing JavaScript Source | ||
Window | Show Ruler Context Menu | Ctrl+F10 | Editing Text | ||
Navigate | Open Type | Ctrl+Shift+T | In Windows | ||
Navigate | Open Resource | Ctrl+Shift+R | In Windows | ||
Run/Debug | Display | Ctrl+Shift+D | Debugging Script | ||
Text Editing | Scroll Line Down | Ctrl+Z | Editing Text | ||
Text Editing | Text End | Esc, Shift+> | Editing Text | ||
Run/Debug | Run Ant Build | Alt+Shift+X, Q | In Windows | ||
Server | Run | Ctrl+Alt+R | In Servers View | ||
Visual Page Editor | Maximize/Restore Visual Part | Alt+Shift+F6 | Visual Page Editor | ||
Search | Spring Beans References Search | Ctrl+Shift+G | Editing in Structured Text Editors | ||
Window | Switch to Editor | Ctrl+X, Ctrl+B | In Windows | ||
Edit | Incremental Find | Ctrl+S | Editing Text | ||
Text Editing | Line End | End | Editing Text | ||
Edit | Copy | Ctrl+C | In Dialogs and Windows | ||
Window | Quick Switch Editor | Ctrl+X, B | In Windows | ||
Views | Show View (View: Cheat Sheets) | Alt+Shift+Q, H | In Windows | ||
Text Editing | Jump to Specification | Alt+F7 | TapestryEditorScope | ||
Text Editing | To Lower Case | Ctrl+Shift+Y | Editing Text | ||
Navigate | Previous Page | Alt+Shift+F7 | In Windows | ||
Edit | Context Information | Ctrl+Shift+Space | In Dialogs and Windows | ||
Run/Debug | Go to Address | Ctrl+G | In Table Memory Rendering | ||
Window | Quick Switch Editor | Ctrl+E | In Windows | ||
Navigate | Forward History | Alt+Right | In Windows | ||
Database Tools | Execute Selected Text As One Statement | Alt+C | Editing SQL | ||
Text Editing | Show Outline | Ctrl+O | TapestryEditorScope | ||
Text Editing | Scroll Line Up | Ctrl+Up | Editing Text | ||
Edit | Matching Tag | Ctrl+Shift+> | Editing in Structured Text Editors | ||
Run/Debug | Run Java Applet | Alt+Shift+X, A | In Windows | ||
Edit | Undo | F9 | In Windows | ||
Text Editing | Previous Word | Alt+B | Editing Text | ||
Navigate | Show In Breadcrumb | Alt+Shift+B | Editing Java Source | ||
Edit | Cut | Ctrl+X | In Dialogs and Windows | ||
Database Tools | Execute Current Text | Alt+S | Editing SQL | ||
Edit | Quick Diff Toggle | Ctrl+Shift+Q | Editing Text | ||
Help | Close User Assistance Tray | Ctrl+F4 | In Dialogs | ||
Script Source | Format | Ctrl+Shift+F | Editing Javascript Source | ||
Run/Debug | Run JUnit Test | Alt+Shift+X, T | In Windows | ||
Text Editing | Text Start | Ctrl+Home | Editing Text | ||
EMF Code Generation | Generate Code | Alt+Shift+G | In Windows | ||
Text Editing | Move Lines Up | Alt+Up | Editing Text | ||
Text Editing | Next Word | Esc, F | Editing Text | ||
Edit | Find and Replace | Ctrl+F | In Windows | ||
Text Editing | Text Start | Alt+< | Editing Text | ||
Search | Declaration in Workspace | Ctrl+G | In Windows | ||
Views | Show View (View: Outline) | Alt+Shift+Q, O | In Windows | ||
Text Editing | Select Next Word | Ctrl+Shift+Right | Editing Text | ||
Edit | Format | Ctrl+Shift+F | Editing in Structured Text Editors | ||
Edit | Cut | Shift+Delete | In Dialogs and Windows | ||
Run/Debug | Next Memory Monitor | Ctrl+Alt+N | In Memory View | ||
Text Editing | Select Previous Word | Ctrl+Shift+Left | Editing Text | ||
Run/Debug | Step Into | F5 | Debugging | ||
File | Close All | Ctrl+Shift+W | In Windows | ||
Navigate | Open Declaration | F3 | In Windows | ||
Navigate | Show In… | Alt+Shift+W | In Windows | ||
Run/Debug | Use Step Filters | Shift+F5 | In Windows | ||
File | Close All | Ctrl+X, Ctrl+C | In Windows | ||
Edit | Occurrences in File | Ctrl+Shift+A | Editing in Structured Text Editors | ||
Edit | Toggle Insert Mode | Ctrl+Shift+Insert | Editing Text | ||
Edit | Content Assist | Alt+/ | In Dialogs and Windows | ||
Database Tools | Debug | Ctrl+Alt+D | Editing SQL | ||
Source | Quick Assist – Rename in file | Ctrl+2, R | Editing Java Source | ||
Views | Show View (View: Console) | Alt+Shift+Q, C | In Windows | ||
File | Refresh | F5 | In Windows | ||
Web Page Editor Layout | Horizontal Layout | Ctrl+Shift+F10 | Using Web Page Editor | ||
Text Editing | Line Start | Ctrl+A | Editing Text | ||
Refactor – Java | Change Method Signature | Alt+Shift+C | In Windows | ||
SQL Results View | Terminate Result | Ctrl+Break | In Windows | ||
Navigate | Next Sub-Tab | Alt+PageDown | In Dialogs and Windows | ||
File | Close All | Ctrl+Shift+F4 | In Windows | ||
Run/Debug | Run Maven Build | Alt+Shift+X, M | In Windows | ||
Text Editing | Line Up | Ctrl+P | Editing Text | ||
Run/Debug | Java Breakpoint Properties | Alt+Enter | In Breakpoints View | ||
Source | Show Source Quick Menu | Alt+Shift+S | In Windows | ||
Source | Organize Imports | Ctrl+Shift+O | In Windows | ||
Edit | Move to front | Ctrl+PageUp | In Windows | ||
Text Editing | Recenter | Ctrl+L | Editing Text | ||
Source | Toggle Comment | Ctrl+7 | Editing Java Source | ||
Text Editing | Text End | Alt+Shift+> | Editing Text | ||
Views | Show View (View: Variables) | Alt+Shift+Q, V | In Windows | ||
Edit | Add Block Comment | Ctrl+Shift+/ | Editing in Structured Text Editors | ||
Text Editing | Previous Word | Ctrl+Left | Editing Text | ||
Navigate | Open External Javadoc | Shift+F2 | In Windows | ||
Text Editing | Next Tag | Ctrl+Alt+Down | TapestryEditorScope | ||
Edit | Run SQL | Ctrl+F9 | Editing Text | ||
File | Esc, F9 | In Windows | |||
Source | Open External Documentation | Shift+F2 | Editing Ant Buildfiles | ||
Text Editing | Delete Next Word | Ctrl+Delete | Editing Text | ||
Views | Show View (View: Breakpoints) | Alt+Shift+Q, B | In Windows | ||
Edit | Select All | Ctrl+X, H | In Dialogs and Windows | ||
Edit | Move forward | Ctrl+Up | In Windows | ||
Run/Debug | Run JUnit Plug-in Test | Alt+Shift+X, P | In Windows | ||
Run/Debug | Next Page of Memory | Ctrl+Shift+. | In Table Memory Rendering | ||
Window | Previous Editor | Ctrl+Shift+F6 | In Windows | ||
Run/Debug | Debug JUnit Test | Alt+Shift+D, T | In Windows | ||
Navigate | Go to Previous Member | Ctrl+Shift+Up | Editing Java Source | ||
Navigate | Open method | Ctrl+Shift+M | Editing JavaScript Source | ||
File | Close | Ctrl+W | In Windows | ||
Navigate | Show In Breadcrumb | Alt+Shift+B | Editor Breadcrumb Navigation | ||
Text Editing | Show Tooltip Description | F2 | Editing Text | ||
Text Editing | Text End | Esc, > | Editing Text | ||
Navigate | Previous | Ctrl+, | In Windows | ||
Navigate | Open definition | F3 | Acceleo Editor | ||
Edit | Redo | Ctrl+Shift++ | In Windows | ||
Refactor – Java | Inline | Alt+Shift+I | In Windows | ||
Views | Show View | Alt+Shift+Q, Q | In Windows | ||
Script Source | Toggle Comment | Ctrl+7 | Editing Script Source | ||
Run/Debug | Display | Ctrl+Shift+D | In Dialogs and Windows | ||
Web Page Editor Layout | Source Code | Ctrl+Shift+F12 | Using Web Page Editor | ||
Edit | Quick Fix | Ctrl+1 | In Dialogs and Windows | ||
Source | Surround With Quick Menu | Alt+Shift+Z | In Windows | ||
Text Editing | Next Word | Ctrl+Right | Editing Text | ||
Edit | Move backward | Ctrl+Down | In Windows | ||
Refactor – Java | Move Bean Class | Alt+Shift+V | Editing in Structured Text Editors | ||
Navigate | Quick Outline | Ctrl+O | PDE editor | ||
Navigate | Search references | Ctrl+Shift+G | Acceleo Editor | ||
Server | Debug | Ctrl+Alt+D | In Servers View | ||
Database Tools | Execute All | Ctrl+Alt+X | Editing SQL | ||
Navigate | Go to Previous Member | Ctrl+Shift+Up | Editing Script Source | ||
Navigate | Last Edit Location | Ctrl+Q | In Windows | ||
Text Editing | Line Start | Home | Editing Text | ||
SQL Results View | Remove All Visible Results | Shift+Delete | In Windows | ||
Edit | Select Enclosing Element | Alt+Shift+Up | Editing in Structured Text Editors | ||
Run/Debug | Debug Java Applet | Alt+Shift+D, A | In Windows | ||
Source | Quick Assist – Assign to local variable | Ctrl+2, L | Editing Java Source | ||
Navigate | Go to Matching Bracket | Ctrl+Shift+P | Editing Java Source | ||
Navigate | Backward History | Alt+Left | In Windows | ||
Text Editing | Next Word | Alt+F | Editing Text | ||
Text Editing | Cut to End of Line | Ctrl+K | Editing Text | ||
Database Tools | Edit in SQL Query Builder… | Alt+Q | Editing SQL | ||
Text Editing | Delete Next Word | Alt+D | Editing Text | ||
Help | Close User Assistance Tray | Ctrl+X, K | In Dialogs | ||
Text Editing | Set Mark | Ctrl+Space | Editing Text | ||
Views | Show View (View: Hierarchy) | Alt+Shift+Q, T | In Windows | ||
Window | Show System Menu | Alt+- | In Windows | ||
Edit | Run Criteria Command | Ctrl+F9 | Editing Criteria | ||
Navigate | Open type | Ctrl+Shift+T | Editing JavaScript Source | ||
Run/Debug | Previous Page of Memory | Ctrl+Shift+, | In Table Memory Rendering | ||
Text Editing | Toggle Folding | Ctrl+Numpad_Divide | Editing Text | ||
Navigate | Open Maven POM | Alt+Shift+P | In Windows | ||
Run/Debug | Step Return | F7 | Debugging | ||
View | Zoom In | Ctrl+= | In Windows | ||
Edit | Select Enclosing Element | Alt+Shift+Up | Editing Java Source | ||
File | Alt+F9 | In Windows | |||
Navigate | Next | Ctrl+. | In Windows | ||
Text Editing | Select Line Start | Shift+Home | Editing Text | ||
Run/Debug | Debug on Server | Alt+Shift+D, R | In Windows | ||
Navigate | Go to Next Member | Ctrl+Shift+Down | Editing Script Source | ||
Navigate | Go to Matching Bracket | Ctrl+Shift+P | Editing Script Source | ||
Text Editing | To Upper Case | Ctrl+Shift+X | Editing Text | ||
Search | Find Text in Workspace | Ctrl+Alt+G | In Windows | ||
Refactor – Java | Show Refactor Quick Menu | Alt+Shift+T | In Windows | ||
Source | Remove Occurrence Annotations | Alt+Shift+U | Editing Java Source | ||
Text Editing | Expand | Ctrl+Numpad_Add | Editing Text | ||
Window | Next View | Ctrl+F7 | In Windows | ||
Text Editing | Reset Structure | Ctrl+Shift+Numpad_Multiply | Editing Text | ||
Text Editing | Jump to Template | Alt+F6 | TapestryEditorScope | ||
Edit | Context Information | Alt+Shift+? | In Windows | ||
Source | Quick Assist – Assign to field | Ctrl+2, F | Editing Java Source | ||
Text Editing | Open Declaration | F3 | TapestryEditorScope | ||
Navigate | Open Call Hierarchy | Ctrl+Alt+H | In Windows | ||
Source | Toggle Comment | Ctrl+7 | Editing Properties Files | ||
Text Editing | Clear Mark | Ctrl+G | Editing Text | ||
Help | Close User Assistance Tray | Ctrl+W | In Dialogs | ||
File | Close | Ctrl+X, K | In Windows | ||
Text Editing | Previous Tag | Ctrl+Alt+Up | TapestryEditorScope | ||
Text Editing | Text Start | Esc, < | Editing Text | ||
Source | Toggle Comment | Ctrl+/ | Editing Properties Files | ||
Edit | Undo | Ctrl+X, U | In Windows | ||
Refactor – Java | Rename Bean Java Elements | Alt+Shift+R | Editing in Structured Text Editors | ||
Views | Show View (View: Javadoc) | Alt+Shift+Q, J | In Windows | ||
Edit | Select Next Element | Alt+Shift+Right | Editing Java Source | ||
File | Properties | Alt+Enter | In Windows | ||
Run/Debug | Toggle Memory Monitors Pane | Ctrl+T | In Memory View | ||
Database Tools | Run | Ctrl+Alt+R | Editing SQL | ||
Edit | Toggle Comment | Ctrl+Shift+C | Editing in Structured Text Editors | ||
File | Save | Ctrl+S | In Windows | ||
Text Editing | Delete Previous Word | Esc, Backspace | Editing Text | ||
Refactor – Java | Extract Local Variable | Alt+Shift+L | In Windows | ||
Views | Package explorer | Alt+Shift+Q, E | In Windows | ||
Run/Debug | Run Last Launched | Ctrl+F11 | In Windows | ||
Views | Show View (View: Package Explorer) | Alt+Shift+Q, P | In Windows | ||
Run/Debug | Debug OSGi Framework | Alt+Shift+D, O | In Windows | ||
Visual Page Editor | Maximize/Restore Source Part | Shift+F6 | Visual Page Editor | ||
Run/Debug | Debug Ant Build | Alt+Shift+D, Q | In Windows | ||
Edit | Move to back | Ctrl+PageDown | In Windows | ||
Edit | Incremental Find Reverse | Ctrl+Shift+J | Editing Text | ||
Navigate | Organize imports | Ctrl+/ | Acceleo Editor | ||
Source | Mark Occurrences | Alt+Shift+O | Editing JavaScript Source | ||
Edit | Incremental Find | Ctrl+J | Editing Text | ||
CSS Dialog | Open CSS Dialog | Ctrl+Shift+C | Editing CSS Source | ||
SQL Results View | Remove Result | Ctrl+Delete | In Windows | ||
Script Source | Remove Block Comment | Ctrl+Shift+\ | Editing Javascript Source | ||
Server | Stop | Ctrl+Alt+S | In Servers View | ||
Run/Debug | Run OSGi Framework | Alt+Shift+X, O | In Windows | ||
Text Editing | Move Lines Down | Alt+Down | Editing Text | ||
Server | Publish | Ctrl+Alt+P | In Servers View | ||
Navigate | Quick Hierarchy | Ctrl+T | Editing Script Source | ||
Edit | Context Information | Alt+? | In Windows | ||
Manifest Editor Source | Format Source | Ctrl+Shift+F | PDE editor | ||
Edit | Run SQL | Ctrl+F9 | In Windows | ||
Text Editing | Text End | Ctrl+X, ] | Editing Text | ||
Edit | Select Next Element | Alt+Shift+Right | Editing in Structured Text Editors | ||
Source | Format | Ctrl+Shift+F | Editing Ant Buildfiles | ||
File | New menu | Alt+Shift+N | In Windows | ||
Edit | Toggle Comment | Ctrl+/ | Editing SQL | ||
Views | Show View (View: Declaration) | Alt+Shift+Q, D | In Windows | ||
Text Editing | Collapse All | Ctrl+Shift+Numpad_Divide | Editing Text | ||
Navigate | Open Structure | Ctrl+F3 | Editing Java Source | ||
Edit | Copy | Esc, W | In Dialogs and Windows | ||
Text Editing | Cut to Beginning of Line | Esc, 0, Ctrl+K | Editing Text | ||
Source | Rename In File | Alt+Shift+R | Editing Ant Buildfiles | ||
Edit | Remove Block Comment | Ctrl+Shift+\ | Editing in Structured Text Editors | ||
Text Editing | Delete Next Word | Esc, D | Editing Text | ||
Text Editing | Toggle Overwrite | Insert | Editing Text |
Q) Difference between Hashtable and HashMap ?
Hashtable :
-
All methods are synchronized.
-
Hashtable is thread safe.
-
Performance is poor.
-
Null is not allowed for both key and value, otherwise NullPointerException.
-
Introduced in 1.0 version and it is legacy.
HashMap :
-
No method is synchronized.
-
HashMap object is not thread safe.
-
Performance is good.
-
Null is allowed as both key and value.
-
Introduced in 1.2 and not legacy.
Explain about LinkedList? Or Constuctors , methods of LinkedList ? Or Explain bout java.util.LinkedList with an example?
java.util
Class LinkedList<E>
java.util.AbstractCollection<E>
java.util.AbstractSequentialList<E>
java.util.LinkedList<E>
All Implemented Interfaces:
Serializable, Cloneable, Iterable<E>, Collection<E>, Deque<E>, List<E>, Queue<E>
public class LinkedList<E>
extends AbstractSequentialList<E>
implements List<E>, Deque<E>, Cloneable, Serializable
Since:
1.2
Method OF LinkedList :
1. boolean add(E e)
Throws:
UnsupportedOperationException
ClassCastException
NullPointerException
IllegalArgumentException
IllegalStateException
2. boolean addAll(Collection c)
Throws:
UnsupportedOperationException
ClassCastException
NullPointerException
IllegalArgumentException
IllegalStateException
3. boolean remove(Object o)
Throws:
ClassCastException
NullPointerException
UnsupportedOperationException
4. boolean removeAll(Collection c)
Throws:
UnsupportedOperationException
ClassCastException
NullPointerException
5. void clear()
Throws:
UnsupportedOperationException
6. boolean contains(Object o)
Throws:
ClassCastException
NullPointerException
7. boolean containsAll(Collection c)
Throws:
ClassCastException
NullPointerException
8. boolean retainAll(Collection c)
Throws:
UnsupportedOperationException
ClassCastException
NullPointerException
9. int size()
10. boolean isEmpty()
11. Iterator<E> iterator()
12. Object[] toArray()
13. <T> T[] toArray(T[] a)
Throws:
ArrayStoreException
NullPointerException
14. boolean equals(Object o)
15. public int hashCode()
Constructors of LinkedList :
-
LinkedList l = new LinkedList();
-
LinkedList l = new LinkedList(Collectio c);
About LinkedList :
-
The underlying data structure is resizable Array or Growable Array.
-
LinkedList object also maintains elements insertion order.
-
LinkedList object also allows duplicate elements.
-
Null insertion is possible.
-
Heterogeneous objects are allowed.
-
Implements Serializable and Cloneable interface but not RandomAcess.
Advantage of LinkedList :
LinkedList is the best choice if our frequent operation is insertion or deletion in the middle.
Di – Advantage of LinkedList :
LinkedList is worst choice if our frequent operation is Retrival operation.
Example of LinkedList :
import java.util.*;
public class LinkedListDemo {
public static void main(String[] args) {
LinkedList l = new LinkedList();
l.add(49);
l.add(“Nag”);
l.add(“Abhi”);
l.add(null);
l.add(“Abhi”);
l.add(0, “durga”);
l.set(0, “Softwatr”);
l.add(“www.chennarapu.wordpress.com”);
l.removeFirst();
l.addFirst(“Raj”);
l.getFirst();
l.getLast();
System.out.println(l);
}
}
OutPut:
D:\NAG\COREJAVA>javac LinkedListDemo.java
Note: LinkedListDemo.java uses unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
D:\NAG\COREJAVA>java LinkedListDemo
[Raj, 49, Nag, Abhi, null, Abhi, http://www.chennarapu.wordpress.com]
Q) Short cuts of EditPlus2?
FILE
FileFtpUpload Ctrl+Shift+S Uploads file to FTP server
FileNew Ctrl+N Creates a new normal text document
FileNewHtml Ctrl+Shift+N Creates a blank HTML page
FileNewBrowser Ctrl+Shift+B Creates a new Browser window
FileOpen Ctrl+O Opens an existing document
FileOpenHeader Ctrl+Shift+H Opens the header file of the C/C++ file
FilePrint Ctrl+P Prints the active document
FileSave Ctrl+S Saves the active document
CURSOR
BackTab Shift+Tab Moves the cursor to the previous tab position
CharLeft Left Moves the cursor one character to the left
CharLeftExtend Shift+Left Extends the selection one character to
the left
CharRight Right Moves the cursor one character to the right
CharRightExtend Shift+Right Extends the selection one
character to the right
FileEnd Ctrl+End Moves to the end of the document
FileEndExtend Ctrl+Shift+End Extends the selection to the end
of the document
FileStart Ctrl+Home Moves to the beginning of the document
FileStartExtend Ctrl+Shift+Home Extends the selection to the
beginning of the document
LineDown Down Moves the cursor down one line
LineDownExtend Shift+Down Extends the selection
down one line
LineEnd End Moves the cursor to the end of current line
LineEndExtend Shift+End Extends the selection to the end
of current line
LineStart Home Moves the cursor to the beginning of current line
LineStartExtend Shift+Home Extends the selection to the
beginning of current line
LineUp Up Moves the cursor up one line
LineUpExtend Shift+Up Extends the selection up one line
PageDown Page Down Moves the cursor down one page
PageDownExtend Shift+Page Down Extends the selection
down one page PageUp Page Up Moves the cursor up one page
PageUpExtend Shift+Page Up Extends the selection up one page
ScrollDown Ctrl+Down Scrolls down one line
ScrollUp Ctrl+Up Scrolls up one line
ViewEnd Ctrl+Page Down Moves the cursor to the bottom
of current screen
ViewEndExtend Ctrl+Shift+Page Down Extends the selection
to the bottom of current screen
ViewStart Ctrl+Page Up Moves the cursor to the top of current
screen
ViewStartExtend Ctrl+Shift+Page Up Extends the selection to
the top of current screen
WordLeft Ctrl+Left Moves backward one word
WordLeftExtend Ctrl+Shift+Left Extends the selection
backward one word
WordRight Ctrl+Right Moves forward one word
WordRightExtend Ctrl+Shift+Right Extends the selection
forward one word
EDIT
EditBackspace Backspace Deletes one character back
EditCapitalize Ctrl+Shift+U Capitalizes the selected text
EditCopy Ctrl+C Copies the selection and put it
on the Clipboard
EditCopyAppend Ctrl+Shift+C Copies the selection and
appends to the clipboard
EditCut Ctrl+X Cuts the selection and put it on the Clipboard
EditCutAppend Ctrl+Shift+X Cuts the selection and
appends to the clipboard
EditDate Ctrl+D Insert current date
EditDateLong Ctrl+Shift+D Insert current date in long format
EditDelete Delete Deletes the selection
EditDeleteEol Ctrl+Shift+Delete Deletes to the end of current line
EditDeleteEow Ctrl+Delete Deletes to the end of current word
EditDeleteLine Alt+Shift+Delete Deletes current line
EditDeleteWord Alt+Delete Deletes current word
EditDeleteBack Backspace Deletes one character back
EditDeleteBackWord Ctrl+Backspace Deletes one word back
EditDuplicate Ctrl+J Duplicates current line
EditExpandWord F2 Replaces current word with the
corresponding cliptext
EditJoin Ctrl+Shift+J Joins selected lines
EditIndentMore Ctrl+I Increases the indentation of
current line or the selected block
EditIndentLess Ctrl+Shift+I Decreases the indentation of
current line or the selected block
EditInsertMode Insert Toggles insert mode and overwrite mode
EditInvertCase Ctrl+K Inverts the case of the selected text
EditLowerCase Ctrl+L Converts the selected text to lower case
EditPaste Ctrl+V Inserts Clipboard contents
EditRedo Ctrl+Y Redoes the previously undone action
EditReformat Ctrl+Shift+R Reformats paragraph to the
format column number
EditSelectAll Ctrl+A Selects the entire document
EditSelectColumn Alt+C Starts the column selection
EditSelectLine Ctrl+R Selects current line
EditSelectWord Ctrl+W Selects current word
EditSplit Ctrl+Shift+K Splits selected wrapped lines EditStripHTML Ctrl+Shift+P Strips html tags in current
document or selection
EditTime Ctrl+M Inserts current time
EditTimeLong Ctrl+Shift+M Insert current time with seconds
EditTranspose Ctrl+T Transposes characters either side of cursor
EditUndo Ctrl+Z Undoes the last action
EditUpperCase Ctrl+U Converts the selected text to upper case
VIEW
ViewBrowser Ctrl+B Loads the active document into the web
browser
ViewCliptextLib Alt+Shift+1 Shows or hides the cliptext window
ViewDirectory Alt+Shift+3 Shows or hides the Directory Window
ViewFullscreen Alt+Shift+0 Toggles Full Screen mode on and off
ViewGotoOutputWnd Shift+F5 Switches the focus between
the output window and the document
ViewHighlightUrl Alt+Shift+U Highlights URLs and e-mail
addresses
ViewLineBreak Alt+Shift+L Shows or hides line break marks
ViewLineNumber Ctrl+Shift+L Shows or hides line numbers
in the active document
ViewOutputWindow Alt+Shift+2 Shows or hides the output window
ViewRuler Alt+Shift+R Shows or hides the ruler
ViewSyntax Alt+Shift+S Enables the syntax highlighting
ViewTabSpace Alt+Shift+I Shows or hides space and tab marks
ViewToggleFocus F5 Switches the focus between the
cliptext/directory window and the document
SEARCH
SearchFind Alt+F3 Finds the specified text
SearchFindNext F3 Finds the next matching text
SearchFindNextWord Ctrl+F3 Finds the next occurrence of
current word or the selected text
SearchFindPrevious Shift+F3 Find the previous matching text
SearchFindPrevWord Ctrl+Shift+F3 Finds the previous
occurrence of current word or the selected text
SearchFunction Ctrl+F11 Shows the function list
SearchGotoLine Ctrl+G Goes to specified line in the active
document
SearchGotoUrl F8 Goes to the highlighted URL
SearchJumpToFile F7 Jumps to a file using output
window pattern
SearchMarkerClear Ctrl+Shift+F9 Clears all marker from the
active document
SearchMarkerToggle F9 Set and clear marker at current line
SearchMarkerNext F4 Goes to next marker position
SearchMarkerPrev Shift+F4 Goes to previous marker position
SearchMatchBrace Ctrl+] Searches for a matching brace
SearchReplace Ctrl+H Replaces specific text with different text
DOCUMENT
DocColMarkerNext Alt+Right Goes to the next column
marker position
DocColMarkerPrev Alt+Left Goes to the previous column
marker position
DocColumnMarker Alt+Shift+M Shows or hides column markers
DocWordwrap Ctrl+Shift+W Toggles the word-wrap feature
of the active document
BROWSER
BrowserEditSource Ctrl+E Edits the source of current HTML page
WINDOW
WindowLastVisited F12 Switches to the last visited
document window WindowList F11 Shows list of all document windows
WindowNext Ctrl+Tab Switches to the next document window
WindowNextPane F6 Switch to the next window pane
WindowPrev Ctrl+Shift+Tab Switches to the previous
document window
WindowPrevPane Shift+F6 Switch back to the previous
window pane
HELP
Help F1 Display help for current task or command
HelpContext Shift+F1 Displays help for clicked on
buttons, menus and windows
Java Technology Experiance Questions of different companies?
1. Wipro Technologies
1. Overloading and overriding example?
2. Diff. b/w Hashtable and Hashmap?
3. Diff. b/w Vector and ArrayList?
4. Why we will give preference to ArrayList?
5. where we used in vector?
6. What is Thin? Diff. b/w Thin and Thick?
7. How the JspSession Management will done program?
8. How the JDBCConnection will be Produced Program?
9.If it possibe multiple constructors in the same class means different parameters?
10. How can we call with in the same class? Ans: this
11. How the Jsp Form Fields will be submitted.
12. if any error will occur the data fields will be lost
or any where stored? Ans: Bean Or Session
13. Where the field validation will be done? Ans: Form Bean
14. what is DesignPattern? what are the types of design patterns?
15. what is the SingleTon DesignPattern?
2. IBM Technologies
1. what is the Diff. b/w Servlets and Jsp?
2. what are the implicit objects in jsp?
3. what is the diff. b/w Forward and Include?
4. what is the diff.b/w JspDirective[<%@JspInclude%>] tag and Jsp:include[<jsp:include>] tag?
5. Diff. b/w Hashtable and Hashmap?
6. How many types of Ejb?
7. Which is the best performance of interface and abstract?
8. what is the JspLifecycle?
3. Capgemini
1. Diff. b/w Abstract and Interface?
2. what is the diff. b/w Jsp:forward tag and rd.forward(“.jsp”)?
3. what is the diff. b/w <jsp:include> and <%@JspInclude%> ?
4. how can we handle the Exceptions in Jsp?
5. what are the weblogic[7001], tomcat[8080]
6. websphere[9080] port no?
7. what is the Latest version of java?
8. what is Wrapper classes?
9. final,finally and finalized?
10. about on ArrayList?
11. Diff. b/w Hashtable and Hashmap?
12. Servlet Lifecycle?
13. tell me about on Custom tag files?
14. what are the Struts Action classes?
15. how to use the Cuistom tags in the Struts?
16. we don’t know the which type of collection object will come at Runtime. then it will be take a method to one element and compare and sort that element how can we proceed?
Ans: ArrayList,Vectors,LinkedList,Set.
weblogic:
16. how the cluster will be done?
17. how the session Pool settings are done in weblogic?
18. how Replication done in weblogic server?
19. how will you write replication code for weblogic in j2ee?
20. how it user enter 3 fields. if server goes down then what happend?
21. if 1000 users access the same page at a time in that case what will happend?
22. write struts validation through programmatic and xml validation?
CVS:
23. if one user modified content and another user also modified. first user modified if the second user save it what happend?
24. First change and submit and second user change what happend? First change and submit and second user not chagged then what happend. what file he get?
25. First will save, Second not saved and not chan ged. if the third user will access what happend?
one to many mapping hbm files? Eg: Employee ——> projects
100
26. Jbuilder version?
27. In Eclipse how to PlugIn CVS or SVN?
Name:——
——
Attachments
———–
———–
submit
28. here Btmp files are not allowed and Zip files are allowed? then how to get it errors will be raised?
4. MindTree:
1. write a program for CRUD Operations using Struts Action calass,design patterns and handle the exceptions? and use all the layers in struts?
2. what is the servlet?
3. how to handle exception?
4. diff. b/w Abstract class and interface?
5. diff. b/w vector and Arrayist?
6. what are the abstract class and interfaces?
7. what is servlet lifecycle?
8. what is diff. b/w voltaile and Transient?
9.what is Ejb?
10. what is the role of Action class in struts?
11.what is Home interface and Remote interface?
12. how to validate a FormBean?
13. what is the method present in Home interface?
5. BOB Technologies:
1. what is the diff. b/w JRE, JVM,JDK?
2. SingleTon designPattern Example?
3. Factory design Pattern?
4. what is the use of Spring?
5. How can you write the Userdefined Exceptions?
6. what are the diff. b/w iterator and Enumerator?
7. what are the diff. b/w HashMap and HashTable?
8. HashMap is taken key value as null?
9. it is possible to take two times key value as null. what will happend?
10. what is the JspLifeCycle?
11. how can we careat Session object?
12. beroree class we can daclare specifiers as sataic? how and what?
13. what is overriding and oiverloading?
14. In super class protected is there is iyt possible to override with the public specifier?
15. how can u write with out using catch block?
16. how can u write using try and finally ?
17. what is the diff. b/w throws and throw keywords?
18. what is the purpose of finally block?
19. what is abstraction?
20. what is the diff b/w string,StringBuffer & Stringbulider?
21. What is the connection pool purpose?
22. User Request —–> SERVLET Howmany objects are created? Is it possible multithreading?
100
6. MarLabs Software Pvt.Ltd:
1. where the static variables will be stored?
2. where the instyle variables will be stored?
3. what are the class loaders in java?
4. Diff. b/w instance variable and static variable?
5. what is synchronization? give the example?
6. How to prevent multithreading in jsp?
7. what are the JspLifeCycle?
8. Diff. b/w ArrayList and Vector?
9. How to convert ArrayList as Synchronized?
10. Diff. b/w Hashtable and Hashmap?
11. what are the diff. b/w iterator and Enumerator?
12. what is the diff b/w StringBuffer & Stringbulider?
13. what is log4j?
14. what are the levels of log4j?
15. what are the types of Appenders in log4j?
16. How to Build the Ant tool?
17. Explain the struts flow?
18. Explain the validate() in struts?
19. what is the Reflection in java?
20. Method Overriding in Exception case?
21. What is the diff. b/w interface and abstract class?
22. what is the NumberFormatException?
23. How to show the Exceptions in Jsp?
24. What is the Singleton Design Pattern?
25. How to manage the Session object?
26. Diff. b/w Servlet Outext and Servlet Outing?
27. Haow to create the Session object in Hibernate?
28. Diff. b/w Webserver and Application server?
29. To create the SessionFactory object what will happend?
30. How to get the particular key value in HashMap?
31. What is Serialization?
32. Give the example of Serialization? Which are serializable and Which are not serializable?
TCS questions:
1. what is your rating in java technology(range 1-5)?
2. what is your rating in corejava/jsp/struts/hibernate/spring/oracle(range 1-5)?
3. what are the diff declarative tags in jsp?
4. how you set the session max interval time?
5. what is the jsp life cycle?
6. what is the diff betn jsp:include and jsp:forward?
7. what is the send redirect?
8. what is the diff betn hashmap and hashtable?
9. what is the diff betn set and list?
10. In which scenario you used ThreadLocal obj in your pjt?
11. what is the thread life cycle?
12. how you handle the lookup tables?
13. how you handle the exceptions?
14. what is the diff betn checked and unchecked exceptions?
15. if I have an scenario like declaring Arithematic functions in jsp which tags u preferred?
16. I have two java script functions with parameters how will I get that parameters list?
17. how do you perform the front-end validations by using java script?
18. oracle joins & co-related sub queries:
19. what r the diff validations in struts framework?
20. Hibernate relations ships? – Table Names…. – One-to-One
21àdif types of ejbs?
22. Explain slsb,sfsb,cmp,bmp,mdb in EJB?
23. can we create the SessionFactory obj with out using hibernate configuration file?
24. what r the diff controllers we have in spring mvc?
25. can we have more properties in pojo than the no.of. columns in db table(true/false)?
26. Explain xml 7 types of parsers?
27. what do you mean by connection pool?
28. Explain ejb transactions?
29.If there r two threads trying to access synchronized method and while 1st thread being processed exception came . in this case what about 2nd thread?
30. how can we get the implicit object “exception” in jsp?
31.Diff b/e load/get?
32. struts flow?
33. About struts validatior plugin?
34.how to get only particular record without loading whole object by using Hibernate framework?
PROJECT ROUND
1. what is your project phase?
2. what is your role In your pjt?
3. what r the diff design patterns(dp) u used in pjt?
4. what is the diff betn mvc1 and mvc2?
5. once you develop the code what will you do?
6. did u give any support to product support team?
7. in pjt what other features u were added?
8. what is the diff betn tickets and defects?
9. how u integrate struts with spring?
10. what meant by server monitoring?
For answers follow the below link
https://chennarapu.wordpress.com