Sign Up

Have an account? Sign In Now

Sign In

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

Sorry, you do not have permission to ask a question, You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here
Sign InSign Up

SIKSHAPATH

SIKSHAPATH Logo SIKSHAPATH Logo

SIKSHAPATH Navigation

  • Home
  • Questions
  • Blog
    • Computer Science(CSE)
    • NPTEL
    • Startup
  • Shop
    • Internshala Answers
Search
Ask A Question

Mobile menu

Close
Ask A Question
  • Home
  • Questions
  • Blog
    • Computer Science(CSE)
    • NPTEL
    • Startup
  • Shop
    • Internshala Answers
  • About
    1. Asked: November 22, 2021In: Mathematics

      Consider following NLPP Min Z=2x₂²-24x₁+2x₂²-8x₂+2×3²-12×3+200 By separating this function show that it is convex

      I'M ADMIN
      I'M ADMIN
      Added an answer on November 22, 2021 at 10:04 pm

      https://sikshapath.in/question/consider-following-nlpp-min-z2x12-24x12x2%c2%b2-8x22x32-12x3200-by-separating-this-function-show-that-it-is-convex/

      Consider following NLPP Min Z=2×1^2-24×1+2×2²-8×2+2×3^2-12×3+200 By separating this function show that it is convex

      See less
        • 0
      • Share
        Share
        • Share on WhatsApp
        • Share on Facebook
        • Share on Twitter
        • Share on LinkedIn
    2. Asked: November 22, 2021In: Programming Language

      Write a program to read and write data to a file.

      I'M ADMIN
      I'M ADMIN
      Added an answer on November 22, 2021 at 10:03 pm

      https://sikshapath.in/question/how-do-you-read-write-a-text-file-in-java/

      How do you read/write a text file in Java?

      See less
        • 0
      • Share
        Share
        • Share on WhatsApp
        • Share on Facebook
        • Share on Twitter
        • Share on LinkedIn
    3. Asked: November 21, 2021In: Programming Language

      Write an AWT GUI application (called AWTCounter). Each time the “Count” button is clicked, the counter value shall increase by 1. …

      I'M ADMIN
      I'M ADMIN
      Added an answer on November 22, 2021 at 9:43 pm

      package com.example; import java.awt.*; // Using AWT's containers and components import java.awt.event.*; // Using AWT's event classes and listener interfaces // An AWT GUI program inherits the top-level container java.awt.Frame public class AWTCounter extends Frame implements ActionListener { privaRead more

      package com.example;
      
      import java.awt.*;         // Using AWT's containers and components
      import java.awt.event.*;   // Using AWT's event classes and listener interfaces
      
      // An AWT GUI program inherits the top-level container java.awt.Frame
      public class AWTCounter extends Frame implements ActionListener {
          private Label lblCount;     // Declare component Label
          private TextField tfCount;  // Declare component TextField
          private Button btnCount;    // Declare component Button
          private int count = 0;      // counter's value
      
          // Constructor to setup UI components and event handlers
          public AWTCounter () {
              setLayout(new FlowLayout());
              // "super" Frame sets layout to FlowLayout, which arranges
              //  Components from left-to-right, then top-to-bottom.
      
              lblCount = new Label("Counter"); // Construct component Label
              add(lblCount);                   // "super" Frame adds Label
      
              tfCount = new TextField(count + "", 10); // Construct component TextField
              tfCount.setEditable(false);       // read-only
              add(tfCount);                     // "super" Frame adds TextField
      
              btnCount = new Button("Count");   // Construct component Button
              add(btnCount);                    // "super" Frame adds Button
              btnCount.addActionListener(this);
              // btnCount is the source object that fires ActionEvent when clicked.
              // The source add "this" instance as an ActionEvent listener, which provides
              //  an ActionEvent handler called actionPerformed().
              // Clicking btnCount invokes actionPerformed().
      
              setSize(250, 100);       // "super" Frame sets initial size
              setTitle("AWT Counter"); // "super" Frame sets title
              setVisible(true);        // show "super" Frame
          }
      
          // ActionEvent handler - Called back when the button is clicked.
          @Override
          public void actionPerformed(ActionEvent evt) {
              ++count;                     // Incrase the counter value
              tfCount.setText(count + ""); // Display on the TextField
              // setText() takes a String
          }
      
          // The entry main() method
          public static void main(String[] args) {
              // Invoke the constructor by allocating an anonymous instance
              new AWTCounter();
          }
      }
      See less
      Attachment

        • 1
      • Share
        Share
        • Share on WhatsApp
        • Share on Facebook
        • Share on Twitter
        • Share on LinkedIn
    4. Asked: November 21, 2021In: Programming Language

      Briefly explain java.awt.BorderLayout with Example.

      I'M ADMIN
      I'M ADMIN
      Added an answer on November 22, 2021 at 9:35 pm

      Briefly explain java.awt.BorderLayout with Example.   ANSWER:

      Briefly explain java.awt.BorderLayout with Example.

       

      ANSWER:

      See less
      Attachment

        • 0
      • Share
        Share
        • Share on WhatsApp
        • Share on Facebook
        • Share on Twitter
        • Share on LinkedIn
    5. Asked: November 22, 2021In: Programming Language

      Write a java program that connects to oracle database, queries the inbuilt table “emp” and displays the first two columns …

      I'M ADMIN
      I'M ADMIN
      Added an answer on November 22, 2021 at 9:31 pm

      try { Class.forName("oracle.jdbc.driver.OracleDriver"); conn = DriverManager.getConnection("jdbc:oracle:thin:@localhost:1521:XE", "JAMES", "local"); } catch (Exception e) { System.out.println("Connection could  not be established"); if (conn != null) conn.close(); }   ANSWER :

      try {
      Class.forName(“oracle.jdbc.driver.OracleDriver”);
      conn = DriverManager.getConnection(“jdbc:oracle:thin:@localhost:1521:XE”, “JAMES”, “local”);
      } catch (Exception e) {
      System.out.println(“Connection could  not be established”);
      if (conn != null) conn.close();
      }

       

      ANSWER :

      See less
      Attachment

        • 0
      • Share
        Share
        • Share on WhatsApp
        • Share on Facebook
        • Share on Twitter
        • Share on LinkedIn
    6. Asked: November 21, 2021In: Programming Language

      Write a java program that establishes a connection to oracle database successfully. If the connection is successful, it should display …

      I'M ADMIN
      I'M ADMIN
      Added an answer on November 22, 2021 at 9:26 pm

      Write a java program that establishes a connection to oracle database successfully. If the connection is successful, it should display a message “Connection Established successfully”.   ANSWER:

      Write a java program that establishes a connection to oracle database successfully. If the connection is successful, it should display a message “Connection Established successfully”.

       

      ANSWER:

      See less
      Attachment

        • 0
      • Share
        Share
        • Share on WhatsApp
        • Share on Facebook
        • Share on Twitter
        • Share on LinkedIn
    1 … 107 108 109 110 111 … 122

    Sidebar

    store ads

    Stats

    • Questions 1k
    • Answers 1k
    • Posts 149
    • Best Answers 89
    • This Free AI Tool Translates Entire Books in Minute !
    • AI News: 🎬 Hollywood’s AI Studios, 🎓 OpenAI’s Latest Gift to Educators, 🚚 Class8 Bags $22M, 🧠 Google Gemini’s Memory Upgrade
    • AI NEWS: Legal Action Against OpenAI, $16M Paid, & Elon Musk’s Praise from Investor 🤖💰📑 | AI Boosts Cloud Seeding for Water Security 🌱💧
    • AI News: 🎬AI Video Tool Scam Exposed🤯, 🛰️ AI-Powered Drones to Ukraine 😱, Google’s $20M AI Push, Sam Altman Joins SF’s Leadership Team
    • AI News: 🤝 Biden Meets Xi on AI Talks, 💡 Xavier Niel’s Advice for Europe, ♻️ Hong Kong’s Smart Bin Revolution, 🚀 AI x Huawei

    Explore

    • Recent Questions
    • Questions For You
    • Answers With Time
    • Most Visited
    • New Questions
    • Recent Questions With Time

    Footer

    SIKSHAPATH

    Helpful Links

    • Contact
    • Disclaimer
    • Privacy Policy Notice
    • TERMS OF USE
    • FAQs
    • Refund/Cancellation Policy
    • Delivery Policy for Sikshapath

    Follow Us

    © 2021-24 Sikshapath. All Rights Reserved