Nitin Agrawal
Contact -
  • Home
  • Interviews
    • Secret Receipe
    • InterviewFacts
    • Resume Thoughts
    • Daily Coding Problems
    • BigShyft
    • Companies
    • Interviews Theory
  • Programming Languages
    • Java Script >
      • Tutorials
      • Code Snippets
    • Reactive Programming >
      • Code Snippets
    • R
    • DataStructures >
      • LeetCode Problems >
        • Problem10
        • Problem300
      • AnagramsSet
    • Core Java >
      • Codility
      • Program Arguments OR VM arguments & Environment variables
      • Java Releases >
        • Java8 >
          • Performance
          • NasHorn
          • WordCount
          • Thoughts
        • Java9 >
          • ServiceLoaders
          • Lambdas
          • List Of Objects
          • Code Snippets
        • Java14 >
          • Teeing
          • Pattern
          • Semaphores
        • Java17 >
          • Switches
          • FunctionalStreams
          • Predicate
          • Consumer_Supplier
          • Collectors in Java
        • Java21 >
          • Un-named Class
          • Virtual Threads
          • Structured Concurrency
      • Threading >
        • ThreadsOrder
        • ProducerConsumer
        • Finalizer
        • RaceCondition
        • Executors
        • Future Or CompletableFuture
      • Important Points
      • Immutability
      • Dictionary
      • Sample Code Part 1 >
        • PatternLength
        • Serialization >
          • Kryo2
          • JAXB/XSD
          • XStream
        • MongoDB
        • Strings >
          • Reverse the String
          • Reverse the String in n/2 complexity
          • StringEditor
          • Reversing String
          • String Puzzle
          • Knuth Morris Pratt
          • Unique characters
          • Top N most occurring characters
          • Longest Common Subsequence
          • Longest Common Substring
        • New methods in Collections
        • MethodReferences
        • Complex Objects Comparator >
          • Performance
        • NIO >
          • NIO 2nd Sample
        • Date Converter
        • Minimum cost path
        • Find File
      • URL Validator
    • Julia
    • Python >
      • Decorators
      • String Formatting
      • Generators_Threads
      • JustLikeThat
    • Go >
      • Tutorial
      • CodeSnippet
      • Go Routine_Channel
      • Suggestions
    • Methodologies & Design Patterns >
      • Design Principles
      • Design Patterns >
        • TemplatePattern
        • Adapter Design Pattern
        • Proxy
        • Lazy Initialization
        • CombinatorPattern
        • Singleton >
          • Singletons
        • Strategy
  • Frameworks
    • Apache Velocity
    • React Library >
      • Tutorial
    • Spring >
      • Spring Boot >
        • CustomProperties
        • ExceptionHandling
        • Custom Beans
        • Issues
      • Quick View
    • Rest WebServices >
      • Interviews
      • Swagger
    • Cloudera BigData >
      • Ques_Ans
      • Hive
      • Apache Spark >
        • ApacheSpark Installation
        • SparkCode
        • Sample1
        • DataFrames
        • RDDs
        • SparkStreaming
        • SparkFiles
    • Integration >
      • Apache Camel
    • Testing Frameworks >
      • JUnit >
        • JUnit Runners
      • EasyMock
      • Mockito >
        • Page 2
      • TestNG
    • Blockchain >
      • Ethereum Smart Contract
      • Blockchain Java Example
    • Microservices >
      • Messaging Formats
      • Design Patterns
    • AWS >
      • Honeycode
    • Dockers >
      • GitBash
      • Issues
      • Kubernetes
  • Databases
    • MySql
    • Oracle >
      • Interview1
      • SQL Queries
    • Elastic Search
  • Random issues
    • TOAD issue
    • Architect's suggestions
  • Your Views

Give your views

3/9/2014

22 Comments

 
Please give your views on the material here. All the material is not genuine & I have taken help from many resources. So let me know if you see any issue with any material given on this website, I will try to correct that.
22 Comments
Nitin
11/26/2014 08:40:36 am

Binding.xml

<?xml version="1.0" encoding="UTF-8"?>
<bindings xmlns="http://java.sun.com/xml/ns/jaxb"
xmlns:xsi="http://www.w3.org/2000/10/XMLSchema-instance"
xmlns:xjc="http://java.sun.com/xml/ns/jaxb/xjc"
xsi:schemaLocation="
http://java.sun.com/xml/ns/jaxb http://java.sun.com/xml/ns/jaxb/bindingschema_2_0.xsd"
version="2.1">
<globalBindings>
<serializable uid="2014" />
<javaType name="java.util.Calendar" xmlType="xs:dateTime"
parseMethod="javax.xml.bind.DatatypeConverter.parseDateTime"
printMethod="javax.xml.bind.DatatypeConverter.printDateTime" />
</globalBindings>
</bindings>

Reply
Nitin
12/4/2014 09:36:40 am

http://www.dba-oracle.com/t_11g_new_binary_xlm_storage.htm
http://www.oracle.com/webfolder/technetwork/tutorials/obe/db/11g/r1/prod/datamgmt/xmldb/xmldb.htm
http://www.liberidu.com/blog/2007/06/24/oracle-11g-xmltype-storage-options/

Reply
Nitin
12/16/2014 03:39:21 am

/**
* Below method is used to convert given date to UTC date
* @param date
* @return
*/
public static Date toUTCDate(Date date){

SimpleDateFormat dateFormatter = new SimpleDateFormat("EEE MMM dd HH:mm:ss z yyyy");
TimeZone.setDefault(TimeZone.getTimeZone("UTC"));
dateFormatter.setTimeZone(TimeZone.getDefault());
String strDt = dateFormatter.format(date);

try {
return dateFormatter.parse(strDt);
} catch (ParseException e) {
e.printStackTrace();
}
return null;
}

Reply
Nitin
12/16/2014 06:41:40 am

/**
* Converts XML Date to Util date format.
*
* @param XMLGregorianCalendar
* @return java.util.Date
*/
public static java.util.Date convertXMLDateToUtildate(
final XMLGregorianCalendar date) {
java.util.Date utilDate = null;
TimeZone.setDefault(TimeZone.getTimeZone("UTC"));
if (date != null) {
utilDate = date.toGregorianCalendar().getTime();
}
return utilDate;

}

/**
* Converts date to XMLGregorianCalendar specific to collateral reply source
* system.
*
* @param date
* @return gregorianDate
* @throws Exception
*/
public static XMLGregorianCalendar convertToXMLGregorianDateFormat(
final java.util.Date date) throws Exception {
DatatypeFactory df = DatatypeFactory.newInstance();
GregorianCalendar gc = new GregorianCalendar();
// gc.setTimeZone(TimeZone.getTimeZone("UTC"));
gc.setTimeInMillis(date.getTime());
return df.newXMLGregorianCalendar(gc);
}

Reply
Nitin
12/18/2014 09:30:32 am

Thunderhead -
https://hmn-uploads-eu.s3.amazonaws.com/thunderhead-production/uploads/2013/03/Sapient-and-Thunderhead.com-White-Paper-Trade-Documentation-Solutions.pdf

ftp://ftp.software.ibm.com/software/data/information-agenda/Thunderhead_Derivatives_Confirmation_psp_FIN_09.pdf

Reply
Nitin
12/19/2014 05:26:40 am

public static boolean validateXMLSchema(String xsdPath, String xmlPath){
try {
SchemaFactory factory =
SchemaFactory.newInstance(XMLConstants.W3C_XML_SCHEMA_NS_URI);
Schema schema = factory.newSchema(new File(xsdPath));
Validator validator = schema.newValidator();
validator.validate(new StreamSource(new File(xmlPath)));
} catch (IOException e){
System.out.println("Exception: "+e.getMessage());
return false;
}catch(SAXException e1){
System.out.println("SAX Exception: "+e1.getMessage());
return false;
}
return true;
}

Reply
Nitin
1/8/2015 10:14:06 am

http://docs.oracle.com/cd/E28280_01/install.1111/e13925/configure.htm

Reply
Nitin
2/13/2015 05:56:40 am

http://howtodoinjava.com/2012/11/07/how-to-work-with-xpaths-in-java-with-examples/

Reply
Nitin
3/5/2015 08:41:44 am

http://blog.hazelcast.com/2013/10/16/kryo-serializer/

Reply
Nitin....Jersey in Java
3/9/2015 10:20:47 am

http://www.vogella.com/tutorials/REST/article.html

Reply
Nitin
3/12/2015 07:56:47 am

https://www.packtpub.com/books/content/converting-xml-pdf
http://thinktibits.blogspot.sg/2011/05/java-itext-convert-xml-to-pdf-example.html
http://www.eclipse.org/birt/getting-started/

Reply
Nitin Agrawal
3/12/2015 09:59:07 am

http://wink.apache.org/documentation/1.2.1/Apache_Wink_User_Guide.pdf

Reply
Nitin
4/3/2015 07:37:09 am

http://www.doku.info/doku_article_510.html

Reply
Nitin Agrawal
4/10/2015 02:50:27 am

To generate template based PDFs
http://www.codestore.net/store.nsf/unid/BLOG-20091123-0347

Reply
Nitin
4/30/2015 03:48:17 am

Field f = Unsafe.class.getDeclaredField("theUnsafe");
f.setAccessible(true);
Unsafe unsafe = (Unsafe)f.get(null);
Sample sample = (Sample)unsafe.allocateInstance(Sample.class);

System.out.println(sample.getNum());
System.out.println(new Sample().getNum());

String str1 = "Hello";
String str2 = "Hello";

long offsetFieldOffset = unsafe.objectFieldOffset(String.class.getDeclaredField("value"));
Object obj = unsafe.getObject(str1, offsetFieldOffset);

Field fStr = String.class.getDeclaredField("value");
fStr.setAccessible(true);
char[] chr = (char[])fStr.get(str1);

chr[1] = 'i';
chr[2] = '\b';
chr[3] = '\b';
chr[4] = '\b';
System.out.println(str2);

Reply
Nitin
5/19/2015 12:05:53 am

http://docs.continuent.com/tungsten-replicator-2.1/deployment-ssl-stores.html

https://docs.oracle.com/cd/E19509-01/820-3503/6nf1il6er/index.html

Reply
Nitin Agrawal
6/9/2015 09:34:07 am

Public Function ExcStrike(pWorkRng As Range) As Long
'Update 20140819
Application.Volatile
Dim pRng As Range
Dim xOut As Long
xOut = 0
For Each pRng In pWorkRng
If Not pRng.Font.Strikethrough Then
xOut = xOut + pRng.Value
End If
Next
ExcStrike = xOut
End Function

Reply
Interceptor
7/7/2015 06:53:47 am

http://www.bullraider.com/java/struts2/tutorials/interceptors-and-thread-safety

Reply
Partha
7/17/2020 08:04:32 am

Hi Brother,
I liked your effort to put together al the interviews. I came across due to delphix. I completely agree on your comment. Most of the companies I am facing the same. Destroyer for positivity.

Your site is really cool to go through before the interview. I just browsed but definitely will go through. I like to access the code. How can i find them?

Thanks

Reply
Nitin Agrawal
7/17/2020 08:12:38 am

Hello Partha,

It is good to see if the content I post here helping others, but regarding code I got the complaints that candidates are copying to clear their interviews, so I had to stop sharing the code via my website & Github but still I have made the code available here though you can't simply copy.
But if you have any specific question not here on the website & need the code for that then you can post that question to me & if I can solve that then I will provide the code for that.

Reply
Nitin Agrawal
7/17/2020 08:15:54 am

You can copy the code for Delphix question, though it was rejected by Delphix & I didn't move ahead.
And yes, I believe that these companies are just giving illusion of job openings.

Reply
Sam
6/6/2022 11:18:30 am

Nice website with some contradictory/debatable thoughts of yours.

Reply



Leave a Reply.

    Author

    Nitin Agrawal

Powered by Create your own unique website with customizable templates.