Xoriant191 open jobs

Java FS Developer - Angular

FrontendPosted 2 weeks agofrom Xoriant's own hiring page

Work type
On-siteBengaluru
Experience
Not stated
Pay
Not listedUsually ₹6.8 LPAFrontend, median, all levels, in India (Payscale)
Posted
2 weeks ago
Before you apply: make your resume fit this job

Skills it mentions

Add your skills to see which ones you have.

Interview questions for this job6 with answers below, on Java, Angular, HTML and CSS and 3 more

About the job

Job Requirements
  • Very strong experience on Java, Spring Boot, Microservices
  • Very good experience on Angular, HTML 5, CSS 3, JavaScript
  • Java work will be around 70% and Angular around 30%
  • Experience on any RDBMS database


Interested?Java FS Developer - Angular at Xoriant

Apply on company site (opens in a new tab)

The job ad ends here

Interview questions for this job6 with answers, on Java, Angular, HTML and CSS and 3 more

Interview questions for this job

For the skills the ad mentions: Java, Angular, HTML and CSS, Spring Boot, Microservices and JavaScript.

1,018 questions
  • What is the difference between static and regular nested classes?Java

    Inner classes vs Static nested classes

    The Java programming language allows you to define a class within another class. Such a class is called a nested class and is illustrated here:

    class OuterClass {
        ...
        class NestedClass {
            ...
        }
    }
    

    Terminology: Nested classes are divided into two categories: static and non-static. Nested classes that are declared static are called static nested classes. Non-static nested classes are called inner classes.

    Example:

    class OuterClass {
        ...
        static class StaticNestedClass {
            ...
        }
        class InnerClass {
            ...
        }
    }
    

    A nested class is a member of its enclosing class. Non-static nested classes (inner classes) have access to other members of the enclosing class, even if they are declared private. Static nested classes do not have access to other members of the enclosing class. As a member of the OuterClass, a nested class can be declared private, public, protected, or package private. (Recall that outer classes can only be declared public or package private.)

    Why Use Nested Classes?

    Compelling reasons for using nested classes include the following:

    • It is a way of logically grouping classes that are only used in one place: If a class is useful to only one other class, then it is logical to embed it in that class and keep the two together. Nesting such "helper classes" makes their package more streamlined.
    • It increases encapsulation: Consider two top-level classes, A and B, where B needs access to members of A that would otherwise be declared private. By hiding class B within class A, A's members can be declared private and B can access them. In addition, B itself can be hidden from the outside world.
    • It can lead to more readable and maintainable code: Nesting small classes within top-level classes places the code closer to where it is used.

    Static Nested Classes

    As with class methods and variables, a static nested class is associated with its outer class. And like static class methods, a static nested class cannot refer directly to instance variables or methods defined in its enclosing class: it can use them only through an object reference.

    Note: A static nested class interacts with the instance members of its outer class (and other classes) just like any other top-level class. In effect, a static nested class is behaviorally a top-level class that has been nested in another top-level class for packaging convenience.

    Static nested classes are accessed using the enclosing class name: OuterClass.StaticNestedClass

    For example, to create an object for the static nested class, use this syntax: OuterClass.StaticNestedClass nestedObject = new OuterClass.StaticNestedClass();

    Inner Classes

    As with instance methods and variables, an inner class is associated with an instance of its enclosing class and has direct access to that object's methods and fields. Also, because an inner class is associated with an instance, it cannot define any static members itself.

    Objects that are instances of an inner class exist within an instance of the outer class. Consider the following classes:

    class OuterClass {
        ...
        class InnerClass {
            ...
        }
    }
    

    An instance of InnerClass can exist only within an instance of OuterClass and has direct access to the methods and fields of its enclosing instance.

    Read the rest at the sourceFrom Android Interview Questions (Apache 2.0)

  • What is the difference between Subject and BehaviorSubject?Angular

    A BehaviorSubject holds one value. When it is subscribed it emits the value immediately. A Subject doesn't hold a value.

    Subject example (with RxJS 5 API):

    const subject = new Rx.Subject();
    subject.next(1);
    subject.subscribe(x => console.log(x));
    

    Console output will be empty

    BehaviorSubject example:

    const subject = new Rx.BehaviorSubject(0);
    subject.next(1);
    subject.subscribe(x => console.log(x));
    

    Console output: 1

    In addition:

    • BehaviorSubject should be created with an initial value: new Rx.BehaviorSubject(1)
    • Consider ReplaySubject if you want the subject to get previously published values.

    From Stack Overflow: asked by Mike Jerred, answered by ZahiC (CC BY-SA 4.0)

  • Change an HTML input's placeholder color with CSSHTML and CSS

    From April 2017: most modern browsers now support the simple pseudo-element ::placeholder [Ref]

    Implementation

    There are three different implementations: pseudo-elements, pseudo-classes, and nothing.

    • WebKit, Blink (Safari, Google Chrome, Opera 15+) and Microsoft Edge are using a pseudo-element: ::-webkit-input-placeholder. [Ref]
    • Mozilla Firefox 4 to 18 is using a pseudo-class: :-moz-placeholder (one colon). [Ref]
    • Mozilla Firefox 19+ is using a pseudo-element: ::-moz-placeholder, but the old selector will still work for a while. [Ref]
    • Internet Explorer 10 and 11 are using a pseudo-class: :-ms-input-placeholder. [Ref]

    Internet Explorer 9 and lower does not support the placeholder attribute at all, while Opera 12 and lower do not support any CSS selector for placeholders.

    The discussion about the best implementation is still going on. Note the pseudo-elements act like real elements in the Shadow DOM. A padding on an input will not get the same background color as the pseudo-element.

    CSS selectors

    User agents are required to ignore a rule with an unknown selector. See Selectors Level 3:

    a group of selectors containing an invalid selector is invalid.

    So we need separate rules for each browser. Otherwise the whole group would be ignored by all browsers.

    ::-webkit-input-placeholder { /* WebKit, Blink, Edge */
        color:    #909;
    }
    :-moz-placeholder { /* Mozilla Firefox 4 to 18 */
       color:    #909;
       opacity:  1;
    }
    ::-moz-placeholder { /* Mozilla Firefox 19+ */
       color:    #909;
       opacity:  1;
    }
    :-ms-input-placeholder { /* Internet Explorer 10-11 */
       color:    #909;
    }
    ::-ms-input-placeholder { /* Microsoft Edge */
       color:    #909;
    }
    ::placeholder { /* Most modern browsers support this now. */
       color:    #909;
    }
    <input placeholder="Stack Snippets are awesome!">

    Usage notes

    Read the rest at the sourceFrom Stack Overflow: asked by David Murdoch, answered by fuxia (CC BY-SA 4.0)

  • What are the possible ways of Dependency Injection?Spring Boot
    • Constructor-Based Dependency Injection;
    • Setter-Based Dependency Injection;
    • Field-Based Dependency Injection; Links
    • https://www.baeldung.com/inversion-control-and-dependency-injection-in-spring
    • https://www.javacodegeeks.com/2019/02/field-setter-constructor-injection.html

    From Java interview (MIT)

  • Kafka Msg VS REST CallsMicroservices

    Gist (for those who want just the gist)

      • Kafka - Publish & Subscribe (just process the pipeline, will notify once the job is done)

      • REST - Request & Await response (on-demand)

      • Kafka - Publish once - Subscribe n times (by n components).

      • REST - Request once, get the response once. Deal over.

      • Kafka - Data is stored in topic. Seek back & forth (offsets) whenever you want till the topic is retained.

      • REST - Once the response is over, it is over. Manually employ a database to store the processed data.

      • Kafka - Split the processing, have intermediate data stored in intermediate topics (for speed and fault-tolerance)

      • REST - Take the data, process it all at once OR if you wish to break it down, don't forget to take care of your OWN intermediate data stores.

      • Kafka - The one who makes the request typically is not interested in a response (except the response that if the message is sent)

      • REST - I am making the request means I typically expect a response (not just a response that you have received the request, but something that is meaningful to me, some computed result for example!)

    Q&A style

    Is your data streaming?
    If the data keeps on coming and you have a pipeline to execute, Kafka is best.

    Do you need a request-response model?
    If the user requests for something and they wait for a response, then REST is best. Though, you can still use Kafka for this, such as spring-kafka ReplyingKafkaTemplate.

    Kafka (or any other streaming platform) is typically used for pipelines, i.e. where we have forward flow of data. LinkedIn built Kafka to centrally collect log and metrics into their data warehouse.

    Data comes to Kafka and from there it goes through component1, component2 and so on and finally (typically) lands in a database / datalake for long-term storage. Or you can can keep data in Kafka forever like the New York Times.

    To get the information on-demand we need a data store (a database) where we can query and get it. In such a case we provide a REST interface which the user can invoke and get the data they want. Confluent, for example, also has a REST Proxy for Kafka to use HTTP to request topic information, however, it is a scan, not an indexed lookup like a database would offer.

    Regarding your example,

    Everyday vendor service calls the vendor API to get new items and these need to be moved into inventory service

    Questions & Answers

    Is your vendor API using REST?

    Then you need to pull the data and push to Kafka. From there your inventory service (or any other service thereafter) will subscribe to that topic and execute their processing logic.

    The advantage here is that you can add any other service which requires vendor data as a consumer to the vendor topic.

    Moreover, the vendor data is always there for you even after your inventory service processed it.

    If you use REST for this, you need to call the Vendor API for every component that requires vendor data which becomes trivial when used with Kafka

    Do you want the inventory to be queried?

    Store it in a database after processing through Kafka and provide a REST on top of this. This is needed because Kafka is typically a log, to make the data query-able you would need some database.

    From Comments

    Compare kafka vs reactive rest api

    Read the rest at the sourceFrom Stack Overflow: asked by user1955934, answered by JavaTechnical (CC BY-SA 4.0)

  • What are your hobbies and interests?Behavioural

    Employers will want to get to know you and may ask things like:

    • what do you do in your spare time?
    • what are your hobbies and interests?

    Show what kind of personal qualities, interests and skills you have. For example, you could talk about:

    • cooking - to show you're organised and can follow instructions
    • travel - to show you're adventurous and flexible
    • team sports - to show you're a team player with good communication
    • music - to show you're creative

    If the job requires certain skills, you should demonstrate these in your examples.

    Example

    If it's a graphic designer role, you could talk about taking a desktop publishing course.

    From National Careers Service: interview advice (Open Government Licence v3.0)

Similar jobs

More like this: Frontend developer jobs in Bengaluru (48), Jobs in Bengaluru (10,716) and Frontend developer jobs in India (196)